⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 result.jsp

📁 管理公司合同
💻 JSP
字号:
<%@ 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -