|
楼主 |
发表于 2020-6-24 22:00:01
|
显示全部楼层
function shutwin()
{
var wp = window.parent.opener;
if(wp!=null && typeof(wp) != "undefined" && !wp.closed)
{
if (wp.document.forms[0].txtRefreshParent != null)
{
wp.document.forms[0].txtRefreshParent.value="Refresh";
}
else
{
if(wp.document.forms[0].ctl00_MainPlaceHolder_txtRefreshParent!=null)
{
wp.document.forms[0].ctl00_MainPlaceHolder_txtRefreshParent.value="Refresh";
}
}
wp.document.forms[0].submit();
}
window.parent.close();
}
事实上wp已经关闭,但是wp.closed为什么等于true呢,且typeof(wp)="object",为什么??? |
|