日期:2014-05-16  浏览次数:20317 次

请教一个javaScript单双引号转义的问题的问题
<input   type= "button "   value= "test "     onclick= "alert( 'txt ') ">
我现在想能够alert出         t 'x "t           该怎么写呢?

------解决方案--------------------
<input type= "button " value= "test " onclick= "alert( 't\ 'x&quot;t ') ">