【发布时间】:2016-02-07 12:55:12
【问题描述】:
$("document").ready(function(){
$(this).css("position", "relative");
$(this).click(function(){
$("img").animate({top: 500}, 2000, "easeInQuad", function(alert("DONE!");){});
});
});
这段代码给了我错误Uncaught TypeError: jQuery.easing[this.easing] is not a function。我不知道发生了什么。
【问题讨论】:
-
$("document").==>$(document). -
包括 jquery UI。见stackoverflow.com/questions/12592279/…
-
@Tushar 它不会改变任何东西。
-
这看起来并没有改变任何东西,但确实如此。如果你在
head中包含了 JS,你就会知道。 -
function(alert("DONE!");){}应该是function(){alert("DONE!");}?
标签: javascript jquery web