jquery cdn bootstrap靜態資源庫問題

使用微軟靜態資源庫html

<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
 

爲了讓您的頁面回退,若是CDN不可用,從本地路徑加載jQuery,請在引用CDN的元素後當即添加如下元素:jquery

 
<script>
  // Fallback to loading jQuery from a local path if the CDN is unavailable
  (window.jQuery || document.write('<script src="/scripts/jquery-1.9.0.min.js"><\/script>'));
</script>
相關文章
相關標籤/搜索