1. Many websites are introduced in this way, and customers ' browsers may have cached jquery. Can directly call local, faster ...
2. Google code uses CDN technology in many places have node servers, loading jquery is never more slow than on your server, except the local server:
3. Can save server traffic, reduce server bandwidth pressure
You can use Google Code's jquery in two ways
First, the reference Http://www.google.com/jsapi?key=Goolge key
<script type= "Text/javascript" >
Google.load ("jquery", "1.4.2");
</script>
Second, direct reference address Http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
JQuery 1.2.6 referencing files
Copy Code code as follows:
<script src= "Http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type= "Text/javascript" ></ Script>
Google JQuery 1.3.2 referencing files
Copy Code code as follows:
<script src= "Http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type= "Text/javascript" ></ Script>
Google JQuery 1.4.2 referencing files
Copy Code code as follows:
<script src= "Http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type= "Text/javascript" ></ Script>
Google JQuery 1.5.2 referencing files
Copy Code code as follows:
<script src= "Http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type= "Text/javascript" ></ Script>