谷歌 微软 新浪 CDN服务

来源:互联网 发布:淘宝描述店铺怎么写 编辑:程序博客网 时间:2024/05/16 21:57

使用Jquery 和 JqueryUI 可以应用CDN上的代码,例如引用Jquery代码

谷歌:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

微软:

<script type="text/javascript"src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js"></script>

新浪:

<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.9.0/jquery.min.js" ></script>

依据本人的使用经验做一下优缺点评价

谷歌:

  优点:CND内容丰富,基本可以找个你想要的代码

  缺点:谷歌推出中国之后服务很不稳定,有时候加载不到代码

微软:

  优点:更新速度快,与谷歌CDN一样快,速度较快,较稳定

  缺点:内容没有谷歌CDN多,主要以微软自己的库为主

新浪:

  优点:国内使用速度快,最稳定

  缺点:更新慢,新版本3-4个月之后才会出现,部分代码不完整

最后说一下CDN的目录链接,希望在这里能找到你想要的代码

谷歌:https://developers.google.com/speed/libraries/devguide?hl=zh-CN

微软:http://www.asp.net/ajaxlibrary/CDN.ashx

新浪:http://lib.sinaapp.com/

<script type="text/javascript"><!--google_ad_client = "ca-pub-1944176156128447";/* cnblogs 首页横幅 */google_ad_slot = "5419468456";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
原创粉丝点击