-1

我想要一个输出:

<input type="text" onclick="alert('\"')" />

但这不起作用:

Response.Write("<input type=""text"" onclick=""alert('\""')"" />")

它给了我

<input type="text" ')"="" onclick="alert('\">
4

1 回答 1

-1

这将输出你想要的:

Response.Write("<input type=""text"" onclick=""alert('\x22')"" />")
于 2011-07-30T07:25:55.043 回答