自动跳转页面 java代码?
来源:百度知道 编辑:UC知道 时间:2024/06/15 20:24:49
如果想有提示如下
在页面这样写:
<% out.println("<script>alert('添加成功');window.location='questionList.jsp';</script>");%>
如果不想有任何提示
<% out.println("<script>window.location='questionList.jsp';</script>");%>
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/06/15 20:24:49
如果想有提示如下
在页面这样写:
<% out.println("<script>alert('添加成功');window.location='questionList.jsp';</script>");%>
如果不想有任何提示
<% out.println("<script>window.location='questionList.jsp';</script>");%>