Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jquery.fn在服务器上不起作用,它在本地_Javascript_Jquery - Fatal编程技术网

Javascript jquery.fn在服务器上不起作用,它在本地

Javascript jquery.fn在服务器上不起作用,它在本地,javascript,jquery,Javascript,Jquery,我在javascript文件中编写了下面的函数。 以前,下面的函数适用于我的服务器和本地服务器,但现在它只适用于我的本地服务器。突然,它停止在服务器上工作。我检查了密码,没有任何变化。我不明白为什么会这样 jQuery.fn.guideWidget = function(e) { alert("guideWdget"); }, jQuery.fn.loading = function() { this.prepend("<div class='fnLoading' styl

我在javascript文件中编写了下面的函数。 以前,下面的函数适用于我的服务器和本地服务器,但现在它只适用于我的本地服务器。突然,它停止在服务器上工作。我检查了密码,没有任何变化。我不明白为什么会这样

jQuery.fn.guideWidget = function(e) {
    alert("guideWdget");
},
jQuery.fn.loading = function() {
    this.prepend("<div class='fnLoading' style='height:" + this.height() + "px;width:" + this.width() + "px'><div class='ajaxOverlayInvis' style='display:block'></div><div class='ajaxOverlay' style='display:block;position:absolute'><div class='loadingimage' style='display:block'></div></div></div>")
}, 
jQuery.fn.loadingDone = function() {
    this.find("div.fnLoading").first().remove()
}
jQuery.fn.guideWidget=函数(e){
警报(“指南”);
},
jQuery.fn.load=函数(){
此。前缀(“”)
}, 
jQuery.fn.loadingDone=函数(){
this.find(“div.fnLoading”).first().remove()
}
是否有其他方法编写上述函数?
以上函数中我做错了什么请告诉我。

您正在尝试使用哪个版本的jQuery?函数的
e
参数是什么?如果不是,请尝试为jQuery的库提供cdn。@guest271314版本:2.2。0@SachinBahukhandicdn???我不明白?你能把你的全部代码都发出来吗?你想用什么版本的jQuery?函数的
e
参数是什么?如果不是,请尝试为jQuery的库提供cdn。@guest271314版本:2.2。0@SachinBahukhandicdn???我不明白?你能把你的全部密码都贴出来吗