Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.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_Javascript_Jquery_Web - Fatal编程技术网

Javascript 未知错误-jQuery

Javascript 未知错误-jQuery,javascript,jquery,web,Javascript,Jquery,Web,这段代码给了我错误未捕获类型错误:jQuery.easing[This.easing]不是一个函数。我不知道发生了什么。语法错误。一定是 $("document").ready(function(){ $(this).css("position", "relative"); $(this).click(function(){ $("img").animate({top: 500}, 2000, "easeInQuad", function(alert("DONE!

这段代码给了我错误
未捕获类型错误:jQuery.easing[This.easing]不是一个函数
。我不知道发生了什么。

语法错误。一定是

$("document").ready(function(){
    $(this).css("position", "relative");
    $(this).click(function(){
        $("img").animate({top: 500}, 2000, "easeInQuad", function(alert("DONE!");){});
    });
 });
我发现两个错误

1) 改变


2) 该属性为jqueryui easeInQuad()。添加库jqueryui

$(“文档”)。
==>
$(文档)。
包括jquery用户界面。看@Tushar,它没有改变任何东西。看起来它没有改变任何东西,但它确实改变了。如果你在
头中包含了JS,你就会知道。
函数(alert(“DONE!”);{}
应该是
函数(){alert(“DONE!”);}
function() { alert("DONE!"); }
$("document")
$(document)