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提供的服务
本文转自敏捷的水博客园博客,原文链接http://www.cnblogs.com/cnblogsfans/archive/2009/09/17/1568750.html如需转载请自行联系原作者
王德水