jquery线上引用
jquery官方的引用地址:
示例:
<script src="http://code.jquery.com/jquery-latest.js"></script>```
有效地址:
http://code.jquery.com/jquery-1.4.1.min.js
http://code.jquery.com/jquery-1.4.1.js```
其中:1.4.1是版本信息
latest: 表示最新
Google引用地址:
可以使用下面这个代码从ajax.googleapis.com调用同样的最新版本jQuery:
示例:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"type="text/javascript"></script>
有效地址:
http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js
其中:1.4.2是版本信息
百度jquery引用地址
http://apps.bdimg.com/libs/jquery/1.6.4/jquery.js
http://apps.bdimg.com/libs/jquery/1.6.4/jquery.min.js
http://apps.bdimg.com/libs/jquery/2.1.1/jquery.js
http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js
可以根据需要把上面地址中的版本号更换以下就可以引用对用的jquery版本。
百度CDN公共库
百度公共CDN为站长的应用程序提供稳定、可靠、高速的服务,包含全球所有最流行的开源JavaScript库。
官网:http://cdn.code.baidu.com/

浙公网安备 33010602011771号