2014-03-26 85 views

回答

1

您必须对您的属性进行html编码以避免冲突引号。

<input type="button" id="btn1" onclick="fncname('{&quot;data&quot;:&quot;testval&quot;}')"> 

http://jsfiddle.net/3ZbYR/

相关问题