// 只需要添加document点击事件,设事件变量为true
var f = false;
$(document).click(function(e){
f = true;
});
window.onbeforeunload = function(){
if(Uploading()){
if( f == false)return "正在上传文件,确定要离开页么?";
f = false;
}
}
// 只需要添加document点击事件,设事件变量为true
f = false;
}
}