window.open打开的窗口关闭后刷新父页面的子页面

iframe里面:
var flag=window.open(url,'',"height:100px,width=50px,help:no;status:no");
if(flag){
            $("#form").attr("action",url);
            $("#form").submit();
        }
打开的子页面:
success:function(data){
                if(data!=null){
                    alert("更新成功!");
                    window.close();
                    opener.location.reload();
                }else{
                    alert("更新失败!");
                }
            },
关闭子页面时父页面的ifame窗口刷新。

猜你喜欢

转载自blog.csdn.net/shannon8/article/details/72896408