微软为asp.net ajax和jquery创建了CDN

The scripts currently stored on Microsoft’s CDN are:

Microsoft AJAX v. 0909 (preview)

  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjax.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjax.debug.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxAdoNet.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxAdoNet.debug.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxDataContext.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxDataContext.debug.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxTemplates.js
  • http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjaxTemplates.debug.js

jQuery v. 1.3.2

  • http://ajax.Microsoft.com/ajax/jQuery/jquery-1.3.2.js
  • http://ajax.Microsoft.com/ajax/jQuery/jquery-1.3.2.min.js
  • http://ajax.Microsoft.com/ajax/jQuery/jquery-1.3.2-vsdoc.js
  • http://ajax.Microsoft.com/ajax/jQuery/jquery-1.3.2.min-vsdoc.js

使用示例:

<script src="http://ajax.Microsoft.com/ajax/beta/0909/MicrosoftAjax.js" type="text/javascript"></script>
<script src="http://ajax.Microsoft.com/ajax/jquery-1.3.2.js" type="text/javascript"></script>

Another way to load the scripts from CDN is by specifying EnableCdn=”true”:

<asp:ScriptManager ID=”SM1” EnableCdn=”true” runat=”server” />
当然, jquery的也可以用google提供的服务
原文地址:https://www.cnblogs.com/cnblogsfans/p/1568750.html