result.jsp
来自「管理公司合同」· JSP 代码 · 共 45 行
JSP
45 行
<%@ page contentType = "text/html;charset=GBK"%>
<%
String message=(String)request.getAttribute("Message");
String path=(String)request.getAttribute("Url");
String script=(String)request.getAttribute("Script");
%>
<input type="hidden" id="message" value="<%=message%>">
<script>
/*
var rng = document.getElementById("message").createTextRange();
rng.select();
rng.execCommand('Copy');
*/
</script>
<%
if(script==null){
script="";
}
out.println("<script>");
if(message!=null && message.length()>0){
out.println("alert(\""+message+"\");");
}
if(path==null || path.length()==0){
if(script.length()==0){
out.println("try{window.close();window.returnValue='1';}catch(e){}\n");
}else{
//out.println("try{window.close();window.returnValue='1';}catch(e){alert(e);}\n");
}
}else{
path = request.getContextPath()+path;
out.println("window.location='"+path+"';");
// out.println("window.setTimeout(\"window.location='"+path+"'\",500)");
}
if(script.length()>0){
out.println(" try{");
out.println(script);
out.println("}catch(e){}\n");
}
out.println("</script>");
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?