代码改变世界

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

2009-09-17 20:14  敏捷的水  阅读(964)  评论(0编辑  收藏  举报

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提供的服务