title: how to replace all %s string in javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format">JavaScript equivalent to printf/string.format</a><br>
    <a href="https://stackoverflow.com/questions/6064956/replace-all-occurrences-in-a-string">replace all occurrences in a string</a>  </p>
  </blockquote>
  
  
  
  <p>see title. see the following variable, how can i replace all '%s' with other string?</p>
  
  <pre><code>var s = 'qwer%sqwer%s';
  </code></pre>
  
  <p>please advice</p>