📜  对话关闭后刷新页面 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:55.006000             🧑  作者: Mango

代码示例1
window.onbeforeprint = function() {
    console.log('This will be called before the user prints.');
};
window.onafterprint = function() {
    console.log('This will be called after the user prints');  
    window.location.reload()
};