ADOU-V

导航

jQuery 引用地址{包括jquery和google提供的地址}, 节省你不必要的流量

你可以使用这句代码读取jQuery的最新版本的代码文件。

jquery官方的引用地址:

示例:

1 <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> 

有效地址:

1 http://code.jquery.com/jquery-1.4.1.min.js

2 http://code.jquery.com/jquery-1.4.1.js 

其中:1.4.1是版本信息

latest: 表示最新

 

Google引用地址:

可以使用下面这个代码从ajax.googleapis.com调用同样的最新版本jQuery:

示例:

 1 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.jstype="text/javascript"></script> 

有效地址:

1 http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js 

2 http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js 

其中:1.4.2是版本信息

posted on 2016-04-13 18:50  a-dou  阅读(360)  评论(0)    收藏  举报