我可以使用JavaScript来检查JQuery是否(已经)在目标Web浏览器(用户)上下载(缓存)了吗?例如:
If (JQuery-from-Microsoft-CDN-downloaded)
Then use http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4.js
Else if (JQuery-from-Google-APIs- downloaded)
Then use http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
Else if (JQuery-from-code.jquery.com- downloaded)
Then use http://code.jquery.com/jquery-1.4.4.min.js
Else use jQuery from my own website.
Run Code Online (Sandbox Code Playgroud)
意思是使用JavaScript的能力,以检查其中的一个是否被目标用户(网页浏览器)下载,如果没有的话,从我自己的网站上使用jQuery否则,如果为true,则使用JQuery该版本是在目标用户下载.