Commit aedc34fd authored by 李晓兵's avatar 李晓兵

'禁用安卓物理返回键'

parent 7ffc2d8a
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<body> <body>
<div id="app-box"></div> <div id="app-box"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script> <!--<script>
if (window.history && window.history.pushState) { if (window.history && window.history.pushState) {
// 往历史记录里面添加一条新的当前页面的url // 往历史记录里面添加一条新的当前页面的url
history.pushState(null, null, document.URL) history.pushState(null, null, document.URL)
...@@ -30,6 +30,6 @@ ...@@ -30,6 +30,6 @@
alert('请点击左上角返回按钮返回') alert('请点击左上角返回按钮返回')
}, false) // false阻止默认事件 }, false) // false阻止默认事件
} }
</script> </script>-->
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment