如何从CDN加载jQuery?

一。总结

面是从所有3个CDN加载jQuery的代码。
从Google CDN加载jQuery Framework的代码

从Microsoft CDN加载jQuery Framework的代码

从jQuery站点加载jQuery Framework的代码(EdgeCast CDN)

案例如下:

下面是从所有3个CDN加载jQuery的代码。

从Google CDN加载jQuery Framework的代码

<script type="text/javascript"

src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">

</script>

从Microsoft CDN加载jQuery Framework的代码

<script type="text/javascript"

src="http://ajax.microsoft.com/ajax/jquery/jquery-1.9.1.min.js">

</script>

从jQuery站点加载jQuery Framework的代码(EdgeCast CDN)

<script type="text/javascript"

src="http://code.jquery.com/jquery-1.9.1.min.js">

</script>


原文地址:https://www.cnblogs.com/csk001/p/14223040.html