html引入jq(html怎么引用js)

lxf2023-03-15 10:02:01

html引入jq(html怎么引用js)

推荐教程:jq教程

方法1:从 jquery.com 下载 jQuery 库

方法2:从 Staticfile CDN、又拍云、新浪、谷歌或微软等引用 jQuery

(1)下载jQuery

下载地址: http://jquery.com/download/

Production version:用于实际的网站中,已被精简和压缩。

Development version:用于测试和开发(未压缩,是可读的代码)。

(2)在公网上引用jQuery

引用代码如下:

<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">

推荐方式2公网引用。

更多编程相关知识,请访问:编程视频!!

以上就是HTML中引用jQuery的两种方法的详细内容,更多请关注AdminJS其它相关文章!