Commit 4565d776 authored by 李晓兵's avatar 李晓兵

'禁用安卓物理返回键'

parent 6716310c
......@@ -153,11 +153,17 @@ vum.$vumPlatform.ready(function () {
}
})
document.addEventListener('deviceready', function () {
if (window.history && window.history.pushState) {
// 给 popstate 绑定一个方法 监听页面刷新
window.addEventListener('popstate', function(){
hlsPopup.showLongCenter('请点击左上角返回按钮返回')
}, false) // false阻止默认事件
}
/*document.addEventListener('deviceready', function () {
document.addEventListener('backbutton', function () {
hlsPopup.showLongCenter('请点击左上角返回按钮返回')
}, false)
}, false)
}, false)*/
vum.$vumPlatform.registerBackButtonAction(function (e) {
// let vm = this
......
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