ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Alert","alert(\"第一行\r\n第二行\")",true);会报脚本错误
ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Alert","alert(\"第一行第二行\")",true);这样就正常.
各位大神们帮忙看看这是为什么呢?
ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Alert","alert('\\n第一行\\n第二行')",true);