How to pause jQuery code for few milliseconds?
问题 I'm using jQuery Ajax functions to auto update my database through cron. Since there are a lot of rows to be updated, I'd like to pause the code for few milliseconds each iretation. What would be the best way to do it? Here's sample of my code: <?php $zdroje = $db->select('zdroje', 'id!=1'); echo "<script type='text/javascript'>\n $(document).ready(function() {\n"; foreach($zdroje as $zdroj) { echo "$.post( '/adminator/menu/2zajezdy/tools/01otnXml/requests.php', { 'updateXML': '".$zdroj['id']