使用第三方CDN加速服务加载js/css
ASP.NET MVC 3.0
- http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.js
- http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js
- http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.js
- http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js
- http://ajax.aspnetcdn.com/ajax/mvc/3.0/MicrosoftMvcAjax.js
- http://ajax.aspnetcdn.com/ajax/mvc/3.0/MicrosoftMvcAjax.debug.js
Bootstrap
- <!– 最新 Bootstrap 核心 CSS 文件 –>
<link rel=“stylesheet” href=“http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css”><!– 可选的Bootstrap主题文件(一般不用引入) –>
<link rel=“stylesheet” href=“http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap-theme.min.css”><!– jQuery文件。务必在bootstrap.min.js 之前引入 –>
<script src=“http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js”></script><!– 最新的 Bootstrap 核心 JavaScript 文件 –>
<script src=“http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js”></script>
Google: http://code.google.com/apis/ajaxlibs/
Microsoft: http://www.asp.net/ajaxlibrary/cdn.ashx
JQuery:http://code.jquery.com/
第一个首选,如果加载失败js就会加载第二个地址:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
!window.jQuery && document.write(\'<script src="http://lib.sinaapp.com/js/jquery/1.10.2/jquery-1.10.2.min.js"><\/script>\');
</script>
View Code