javascript 跨域子窗口关闭并刷新父窗口
在父窗口调用open时作如下处理:
function winOpen(url) { var win=window.open(url,'','height=400,width=650,top=300,left=300,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no'); setInterval((function(win){return function(){ if(win.closed){ window.location.reload(); } };})(win),1000); }
即可实现javascript 跨域子窗口关闭并刷新父窗口