谷歌jquery cdn加速点
http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
微软jquery cdn加速点
http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js
新浪jquery cdn加速点
http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js
你还可以这样写,第一个首选,如果加载失败js就会加载第二个地址
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
!window.jQuery && document.write('<script src=http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js><\/script>');
</script>
参考:http://www.51xuediannao.com/qd63/index.php/page-2-38-1.html
http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
微软jquery cdn加速点
http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js
新浪jquery cdn加速点
http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js
你还可以这样写,第一个首选,如果加载失败js就会加载第二个地址
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
!window.jQuery && document.write('<script src=http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js><\/script>');
</script>
参考:http://www.51xuediannao.com/qd63/index.php/page-2-38-1.html
本文介绍了如何使用不同来源的 jQuery CDN 加速点来提高网页加载速度。提供了谷歌、微软及新浪提供的 jQuery CDN 地址,并展示了如何设置备选加载方案以确保在首选地址不可用时仍能快速加载 jQuery。
1754

被折叠的 条评论
为什么被折叠?



