Using Google-hosted JavaScript libraries in projects
Author: chszs, reprinted with note.
Author blog homepage: http://blog.csdn.net/chszs
Google provides many open-source JavaScript libraries, including jquery, dojo, mootools, prototype, swfobject, webfont loader, script. aculo. Us, jquery UI, and angularjs.
To use the libraries provided by Google, simply use <SCRIPT src = "…"> </SCRIPT> label.
The libraries provided by Google are stable, reliable, fast, and globally accessible, including all mainstream and open-source JavaScript libraries. In addition, developers do not need to download and manage library files. They only need to directly use the Google repository link.
1. Load jquery from the Google Repository:
<SCRIPT src = "// ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"> </SCRIPT>
2. Load jquery UI from the Google Repository:
<SCRIPT src = "// ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"> </SCRIPT>
3. Load mootools from the Google Repository:
<SCRIPT src = "// ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"> </SCRIPT>
4. Load prototype from the Google Repository:
<SCRIPT src = "// ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js"> </SCRIPT>
5. Load script. aculo. Us From the Google Repository:
<SCRIPT src = "// ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js"> </SCRIPT>
Author: chszs, reprinted with note. Author blog homepage: http://blog.csdn.net/chszs
6. Load swfobject from Google Repository:
<SCRIPT src = "// ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"> </SCRIPT>
7. Load webfont from the Google Repository:
<SCRIPT src = "// ajax.googleapis.com/ajax/libs/webfont/1.0.31/webfont.js"> </SCRIPT>
8. Load angularjs from the Google Repository:
<SCRIPT src = "// ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.min.js"> </SCRIPT>
9. Load chrome frame from the Google Chrome Repository:
<SCRIPT src = "// ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/cfinstall.min.js"> </SCRIPT>