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)