html Method to call external jquery: 1. Download the jQuery library from [jquery.com]; 2. Reference jQuery from Staticfile CDN, Youpaiyun, Sina, Google or Microsoft.
The operating environment of this tutorial: windows7 system, jquery3.2.1&&html5 version, DELL G3 computer. This method is suitable for all brands of computers.
Recommended: jquery video tutorial
html method of calling external jquery:
(1) Download jQuery
Download address: jquery.com
Production version: used in actual websites, has been streamlined and compressed.
Development version: For testing and development (uncompressed, readable code).
Use <script>
to introduce this jQuery file in the HTML page. The code is as follows:
<script src='本地jquery文件路径'></script>
(2) Reference jQuery## on the public Internet
#The reference code is as follows:<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
<script src="https://upcdn.b0.upaiyun.com/libs/jquery/jquery-2.0.2.min.js">
<script src="https://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js">
<script src="jQuery文件路径"></script> <script> //在此书写你的jquery代码 </script>
Programming Teaching
! !The above is the detailed content of How to call external jquery in html. For more information, please follow other related articles on the PHP Chinese website!