title: onclick="doSomething([object Object])" Uncaught SyntaxError: Unexpected identifier
body: <p><code>var params = {a:1,b:2};
   var str = '&lt;a href="#" onclick="doSomething('+params+')"&gt;aaaa&lt;/a&gt;';
   document.write(str);</code></p>
  
  <p>when I click the <code>&lt;a&gt;</code> on the page,it throws "Uncaught SyntaxError: Unexpected identifier".I can't understand.  </p>