首先
var returnValue=window.showModalDialog('<%=path%>/infectiousmanage/TreatRecord!selectUpdateInfo.action?idCard='+personId,'选择查看信息','status=no;scroll=no;resizable=no;help=no;dialogWidth=300px;dialogHeight=200px;center=yes');
其次returnValue的值是之前的页面射的比如现在是action跳转到的那个页面值设置如下
window.returnValue = document.getElementById("selectInfo").value+","+idCard;
上面传的是两个值
接受处理方法如下
if(typeof(returnValue)!="undefined")
{
var idCard = returnValue.split(",");
if(idCard[0]=="1"){
window.location.href="<%=path%>/infectiousmanage/TreatRecord!ChaKanCode.action?idCard="+idCard[1];
self.close();
}
if(idCard[0]=="2"){
window.location.href="<%=path%>/infectiousmanage/TreatRecord!TreatRecord.action?idCard="+idCard[1];
self.close();
}
}