我在我的标记中包含了对Google的JQuery库的引用:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
Run Code Online (Sandbox Code Playgroud)
这样做安全吗?我如何知道Google不会更改地址或完全删除地址?我真的不能没有警告我的应用程序休息.
其他人做什么?
Mau*_*ord 24
拥有两全其美.使用他们的快速,可能预先缓存的交付,以及他们的服务器停机(比移动它更可能)回退到您自己的:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined')
{
document.write(unescape("%3Cscript src='/path/to/your/jquery' type='text/javascript'%3E%3C/script%3E"));
}
</script>
Run Code Online (Sandbox Code Playgroud)
摘自:使用谷歌托管的jQuery的最佳方式,但回到我在Google上的托管库失败