87,910
社区成员
发帖
与我相关
我的任务
分享
window.onbeforeunload = function () {
var n = window.event.screenX - window.screenLeft;
var b = n > document.documentElement.scrollWidth - 20;
if (b && window.event.clientY < 0 || window.event.altKey) {
alert("是关闭而非刷新");
window.open(this.location);
} else {
alert("是刷新而非关闭");
}
}
在这里面做处理吧