Java 代码中内嵌Script的alert弹窗信息提示

PrintWriter out = response.getWriter();
out.print("<script> alert('您还没有登录,请登录...'); window.location='***.jsp' </script>");
out.flush();
out.close();

posted @ 2020-09-26 19:02  墨白95  阅读(1424)  评论(0编辑  收藏  举报