页面刷新监控 Aki 2021-03-15 157 阅读1分钟 window.onbeforeunload = function(e) { (e || window.event).returnValue = '确定离开此页吗?'; }