我不能为我的生活弄清楚这段代码的问题是什么.动画本身很好用:
if (!list.is(':animated')) {
list.animate(
{"top": "+="+item_size},
{queue:false, duration:speed},
function() {
alert();
}
); // end of animate function
} //end of if statement
Run Code Online (Sandbox Code Playgroud)