$。循环中的延迟使用

时间:2013-11-26 22:07:05

标签: jquery asynchronous

我有这个:

$("#parts li").each(function(){
        var data_id=$(this).attr("data-id");
        serialized_parts[data_id]=[];
        manipulationsPosition[data_id]=-1;
        $(this).click();
    });

$(this)中的东西.click();需要时间才能在下次执行之前正确执行。有人告诉我关于$。但是很谦虚,我不知道如何使用它。有人可以帮帮我吗?

0 个答案:

没有答案