使用微軟靜態資源庫
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
為了讓您的頁面回退,如果CDN不可用,從本地路徑加載jQuery,請在引用CDN的元素后立即添加以下元素:
<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>