日期:2014-05-17 浏览次数:20450 次
Response.Write("<script>alert('"+ 1 + "<br>" + 2 + "<br>" + 3 +"')</script>");
string s = @"+ 1 + \n\r + 2 + \n\r + 3 +"; Response.Write("<scr" + "ipt>alert('" + s + "')</scr" + "ipt>");
------解决方案--------------------
Response.Write("<script>alert(\"1\\r\\n2\")</script>");