81,090
社区成员
发帖
与我相关
我的任务
分享
var thisPage=false;
window.onbeforeunload=function checkLeave(e){
var evt = e ? e : (window.event ? window.event : null); //此方法为了在firefox中的兼容
// $ajax等等
if(!thisPage)evt.returnValue='离开会使编写的内容丢失。';
}