Google CDN jQuery加载回退

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Google CDN jQuery加载回退相关的知识,希望对你有一定的参考价值。

This code snippet fetches the very latest minified version of jQuery from Google's CDN. If this is not available, we revert to a locally stored version (current version at time of publish was 1.7.1 - update this to suit going forward).
  1. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
  2. <script>!window.jQuery && document.write('<script src="js/jquery-1.7.1.min.js"></script>')</script>

以上是关于Google CDN jQuery加载回退的主要内容,如果未能解决你的问题,请参考以下文章