Use Google-hosted JavaScript libraries in projects

Source: Internet
Author: User
Tags mootools
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>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.