jQuery how to make delayed appending inside a loop?
Would like to append rows in a small p开发者_如何学Pythoneriod.
Couldn't do that. :)
Maybe someone here could demonstrate that?
Would be very grateful.
you could use window.setTimeout as described here on the mdc.
In theory, something like this:
var timer = 0;
var items = $(".item").hide().each(function() {
    var el = $(this);
    timer += 250;
    window.setTimeout(function() {
        el.show();
    }, timer)
});
You can use setInterval().
Example:
setInterval(function() {
    // this will be executed every 1000ms
}, 1000);
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论