//实现javascript 跨域子窗口关闭并刷新父窗口
function winOpen(url){
var win=window.open(url,‘‘,‘height=480,width=670,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);
}
时间: 2024-09-30 14:23:15