小编hug*_*son的帖子

.animate()中的匿名回调函数无法正常工作

我不能为我的生活弄清楚这段代码的问题是什么.动画本身很好用:

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)

jquery jquery-callback jquery-animate

4
推荐指数
1
解决办法
3462
查看次数

标签 统计

jquery ×1

jquery-animate ×1

jquery-callback ×1