这个简单
<%
out.println("<script>alert('姓名:xx\\n性别:女\\n爱好:吃\\n')</script>");
%>

多加一个 \ 就行了
posted on 2013-10-16 12:29  御不凡  阅读(225)  评论(0编辑  收藏  举报