js window.open()实现打印,如何在关闭打印窗口时刷新父窗口时间:2023-03-09 21:24:54 var childWin = window.open("your URL"); //获取子窗口句柄childWin.onunload = function(){ //onunload是窗口关闭事件 this.opener.location.reload(); //childWin.opener为父窗口,及时刷新} 楼主也可以这样:(直接在子窗口中) window.onunload = function(){ this.opener.location.reload(); }更为简洁。。。