可能你会觉得第三方很不靠谱,但是如果连Google跟微软都不靠谱的话,估计也没多少是靠谱的。
但除非你有自信自己的服务器比CDN还厉害,不然使用第三方提供的放在CDN上jQuery更加明智,当网站流量很大的时候,这个举动将会为您节省不少的带宽。
谷歌cdn加速点
http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
微软cdn加速点
http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js
新浪cdn加速点
http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js
Jquery官方CDN加速点
www.schoolrack.com/jiang;
www.schoolrack.com/bjfp1;
www.schoolrack.com/shfp;
www.schoolrack.com/shkfp1;
www.schoolrack.com/tjfp;
www.schoolrack.com/tjkfp;
www.schoolrack.com/cqfp;
www.schoolrack.com/hakfp;
www.schoolrack.com/hafp;
www.schoolrack.com/jlfp;
www.schoolrack.com/jifp;
www.schoolrack.com/changfp;
www.schoolrack.com/chfp;
www.schoolrack.com/sfp;
www.schoolrack.com/shenfp;
www.schoolrack.com/dafp;
www.schoolrack.com/dakfp;
www.schoolrack.com/jinfp;
www.schoolrack.com/jinkfp;
www.schoolrack.com/qingkfp;
www.schoolrack.com/taifp;
www.schoolrack.com/taikfp;
www.schoolrack.com/taiyfp;
www.schoolrack.com/xifp;
www.schoolrack.com/xikfp;
www.schoolrack.com/xiafp;
www.schoolrack.com/shifp;
www.schoolrack.com/shikfp;
www.schoolrack.com/shijfp;
www.schoolrack.com/wufp;
www.schoolrack.com/wukfp;
www.schoolrack.com/chsfp;
www.schoolrack.com/chskfp;
www.schoolrack.com/wuxfp;
www.schoolrack.com/wuxkfp;
www.schoolrack.com/nanfp;
www.schoolrack.com/nankfp;
www.schoolrack.com/shufp;
www.schoolrack.com/shukfp;
www.schoolrack.com/shuzfp;
www.schoolrack.com/ningfp;
www.schoolrack.com/ninbfp;
www.schoolrack.com/nbfp;
www.schoolrack.com/hfp;
www.schoolrack.com/fufp;
www.schoolrack.com/fukfp;
www.schoolrack.com/ffp;
www.schoolrack.com/kfp;
www.schoolrack.com/kkfp;
www.schoolrack.com/kunfp;
www.schoolrack.com/cfp;
www.schoolrack.com/ckfp;
www.schoolrack.com/hkfp;
www.schoolrack.com/hekfp;
www.schoolrack.com/gfp;
www.schoolrack.com/gkfp;
www.schoolrack.com/guifp;
www.schoolrack.com/yfp;
www.schoolrack.com/yangfp;
www.schoolrack.com/ykfp;
www.schoolrack.com/nfp;
www.schoolrack.com/nkfp;
www.schoolrack.com/gufp;
www.schoolrack.com/gukfp;
www.schoolrack.com/zkfp;
www.schoolrack.com/zfp;
www.schoolrack.com/skfp;
www.schoolrack.com/zsfp;
www.schoolrack.com/zhongfp;
www.schoolrack.com/zhkfp;
www.schoolrack.com/stfp;
www.schoolrack.com/stkfp;
www.schoolrack.com/stdfp;
www.schoolrack.com/fofp;
www.schoolrack.com/fokfp;
www.schoolrack.com/lafp;
www.schoolrack.com/lakfp;
www.schoolrack.com/zhfp;
www.schoolrack.com/zufp;
www.schoolrack.com/zhufp;
www.schoolrack.com/guafp;
www.schoolrack.com/tianfp;
http://code.jquery.com/jquery.min.js, 这个永远是最新版本的JQuery
如果你真的担心第三方不靠谱
你可以这样写,第一个首选,如果加载失败js就会加载第二个地址