这样子的,在父窗口调用window.open(strURL,'',sFeatures);
在子窗口中调用 
window.opener.location.href = window.opener.location.href
window.close();
在启动服务器后,第一次调用,父页面看起来刷新了,但是数据实际没有刷新。
以后调用就正常了。奇怪,有没有人遇到过呢?

解决方案 »

  1.   

    window.opener.location.href = window.opener.location.href
    window.close();
    我没有遇到过.你这里可以换成
    window.parent.location.href = window.opener.location.href
    window.close();
      

  2.   

    要不试试
    window.opener.document.reload();
    window.close();
      

  3.   

    你说的问题,我遇到过,试试先转向再关闭,
    window.close();     window.opener.location.href="ReleaseView.jsf?devid="+window.opener.document.all.moduleID.innerText;
    或者
    window.close();
    window.opener.location.reload();
      

  4.   

    to :chuan122345() 
    先转向再关闭,
    window.close();     window.opener.location.href="ReleaseView.jsf?devid="+window.opener.document.all.moduleID.innerText;后面指向是哪个地址呢?或者
    window.close();
    window.opener.location.reload();
    这样写的话,总是弹出对话框,问我是否刷新,这样也不行啊。
      

  5.   

    window.opener.location.reload();
    window.close();
    父窗口是用post提交打开的
    想办法用get方式打开,比如跳转
      

  6.   

    window.opener.location.href = window.opener.location.href
    这种方式,用MYIE打开多个窗口的那种,也会出现问题。