title: How to show a same html element's change in a loop with js
body: <p>I want to show a progress by changing an element's text like below:</p>
  <pre><code>for (i = 0; i &lt; 1000; ++i)
  {
      $('#progressing &gt; #num').html(i + '/' + 1000);
  
      // do other things
      ...
  }
  </code></pre>
  <p>But it seems that explorer has mingle the change on the element, i can only see the last loop's result.</p>
  <p>i have tried to use setInterval, and it works well:</p>
  <pre><code>    setInterval(function(self) {
              $('#progressing &gt; #num').html(self.progress + '/' + 1000);
              self.progress += 1;
      }, 1, this);
  </code></pre>
  <p>But i think it's not cool. May i ask for a elegant way to show element change  immediately, just like flush function in IO, or some other way?</p>