Home >Web Front-end >JS Tutorial >How to use the downloaded jquery plug-in
How to use the downloaded jquery plug-in: 1. Place the downloaded file in the same directory of the web page and you can use jQuery; 2. Reference it through CDN, the code is [
The operating environment of this tutorial: windows10 system, jquery1.10.2, this article Applicable to all brands of computers.
Use the downloaded jquery plug-in method:
1. Download and quote:
Download the jQuery library from jquery.com
Put the downloaded file in the same directory of the web page to use jQuery.
<head> <script src="jquery-1.10.2.min.js"></script> </head>2. Reference through CDN:
If you do not want to download and store jQuery, Staticfile CDN, Baidu, Youpaiyun, Sina, Google and Microsoft servers all store jQuery.
If your site users are domestic , it is recommended to use domestic CDN addresses such as Baidu, Youpaiyun, Sina, etc. If your site users are from abroad, you can use Google and Microsoft.
If you need to quote from Staticfile CDN, Youpaiyun, Sina, Google or Microsoft jQuery, please use one of the following codes:
<head> <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"> </script> </head><head> <script src="https://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js"> </script> </head><head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> </head>Related free learning recommendations: JavaScript (video)
The above is the detailed content of How to use the downloaded jquery plug-in. For more information, please follow other related articles on the PHP Chinese website!