核心提示:window.open打开的窗口关闭后刷新父页面的子页面。iframe里面:var flag=window.open(url,,height:100px,width=50px,help:no;stat...
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窗口刷新。