var arr=[1,2,3,4,5]; jQuery.each(arr,function(item) { $('#block_info').delay(10000).append(item); });
var arr=[1,2,3,4,5], i = 0; (function fn(){ $('#block_info').append(arr[i++]); if (i<arr.length) setTimeout(fn,10000); })();
<!DOCTYPE html> <html> <head> <title>Untitled</title> <meta charset="utf-8"> <style type="text/css"> </style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script> $(function() { var arr=[1,2,3,4,5]; jQuery.each(arr,function(i,item) { $('#block_info').delay(10000) .queue(function () { $(this).append(item).dequeue(); }); }); }); </script> </head> <body> <div id="block_info"></div> </body> </html>