window.οnbefοreunlοad=function (){
alert("===οnbefοreunlοad===");
if(event.clientX>document.body.clientWidth && event.clientY < 0 || event.altKey){
alert("你关闭了浏览器");
sessionStorage.clear();
}else{
alert("你正在刷新页面");
sessionStorage.clear();
}
}