可能重复:
如果jquery不加载,我如何设置备份?
我发现并尝试过这个:
if (typeof jQuery == 'undefined') {
alert('jquery didn't load !');
loadScript("/here/jquery.min.js");
.... // this is where i'd want to say load from '/here/jquery.js'
}
但我不知道如何在脚本中调用脚本的src。
您好,我正在使用以下代码:
jQuery(document).ready(function(){
var number = 1;
///////////////////////////////////////////////////
/* The button to see the single portfolio items */
jQuery('.cover a').unbind("click").click(function (coverclick){
coverclick.preventDefault();
coverc