提示信息后页面样式改变问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cherish_CX/article/details/52876512

一般我们会用一下语句在网页上跟用户交互

// Response.Write("<script>alert(\"复制成功!\");script>");


但是发现信息提示完成之后页面的样式会改变,这个时候我们把这个语句改写成这样就可以了

// Response.Write("<script>alert(\"复制成功!\");location.replace(location.href);</script>");



猜你喜欢

转载自blog.csdn.net/cherish_CX/article/details/52876512