//nextpage 为弹出alert后跳转的页面
String nextpage = "_manage.jsp";
StringBuffer result = new StringBuffer("<script>");
result.append("alert(/"操作成功!/");");
result.append("window.location.href='" + nextpage + "';");
result.append("</script>");
out.println(result.toString());
在jsp代码中弹出alert令一种写法
最新推荐文章于 2024-02-05 15:21:38 发布