<script language="C#" runat="server">
public void test()
{
Response.Write("<script>alert('哪里出错了????');</script>");
}
</script>
这是写在网页前台的一段代码.
编译错误: 常量中有换行符.
...在线等...
public void test()
{
Response.Write("<script>alert('哪里出错了????');</script>");
}
</script>
这是写在网页前台的一段代码.
编译错误: 常量中有换行符.
...在线等...
中间多了一个分号吧.</script>前面
改下下面这样子,试试呢?
Response.Write("<script>alert('哪里出错了????');</scr"+"ipt>");