是否离开网站,你所做的更改可能未保存。
<script>
window.onbeforeunload = function(e) {
e = e || window.event;
// 兼容IE8和Firefox 4之前的版本
if (e) {
e.returnValue = false;
}
// Chrome, Safari, Firefox 4+, Opera 12+ , IE 9+
return false;
}
</script>