] in the [
] tag Just code."/> ] in the [] tag Just code.">Home >Web Front-end >JS Tutorial >How to import jquery
How to import jquery: first download the jquery plug-in; then upload it and insert [] code is enough.
Recommended: "jquery video tutorial"
How to import jquery:
Method 1, CDN reference: Find the jQuery site, such as searching for "Baidu CDN" to find the jquery link provided by Baidu.
Method 1, CDN reference: Find the jquery name and corresponding address to be used.
Method 1, CDN reference: insert
<script type="text/javascript" src="in" the> tag "http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
code, you can complete the reference of the corresponding jquery code.
Method 2, local download reference: Download the jquery plug-in.
#Method 2, local download and reference: upload to the project file directory and then reference. After uploading, insert the <script type="text/javascript" src="local%20jquery%20address/jquery%20file%20name.js"></script>
code in the
Related free learning recommendations: JavaScript (video)
The above is the detailed content of How to import jquery. For more information, please follow other related articles on the PHP Chinese website!