标签:amp 详细 turn javascrip value dal context window sub
1.window.showModalDialog方法
原页面方法:
function showReturnRevise(calcId){
var returnvalue = window.showModalDialog("<%=request.getContextPath()%>"+"/ac/rschk/subsidy/subsidyExam.do?action=showReturnRevise&calcId="+calcId, "","dialogHeight: 400px; dialogWidth: 600px;");
showMsg("退补修订"+returnvalue);
if(returnvalue == "successclose"){
//调用页面刷新方法
}
}
新打开的页面:
//设定关闭后的返回值
<SCRIPT language=JavaScript>
window.returnValue="successclose";
</SCRIPT>
详细参照:
https://www.jb51.net/article/45283.htm
window.showModalDialog 打开页面及关闭刷新
标签:amp 详细 turn javascrip value dal context window sub
原文地址:https://www.cnblogs.com/chenzhihua6232/p/14783931.html