|
@@ -43,6 +43,13 @@ window.onload = function () {
|
|
|
// initViewport(realHeight, realWidth);
|
|
|
// // window.location.reload();
|
|
|
// })
|
|
|
+
|
|
|
+ window.addEventListener('beforeunload', function (event) {
|
|
|
+ // 阻止默认行为
|
|
|
+ event.preventDefault();
|
|
|
+ event.returnValue = '';
|
|
|
+ // / 对某些浏览器有效
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
US.Config = {
|