js控制安卓返回键点击无效(不返回上一页)

如图:加上两句话就行

window.history.pushState('forward', null, location.href); //在IE中必须得有这两行  
window.history.forward(1);  

 

posted @ 2017-04-27 15:33  宝宝&贝贝  阅读(724)  评论(0编辑  收藏  举报