如何防止popstate
页面加载时触发事件?(这发生在 Android 浏览器上)
在 Android 浏览器上运行以下代码段并查看结果。(替代链接 ro 运行代码段:https ://jsfiddle.net/heoceze0/1 )
window.onpopstate = function (e) {
alert('popstate is called!!!');
};
If you got no alert, that's ok...
如何防止popstate
页面加载时触发事件?(这发生在 Android 浏览器上)
在 Android 浏览器上运行以下代码段并查看结果。(替代链接 ro 运行代码段:https ://jsfiddle.net/heoceze0/1 )
window.onpopstate = function (e) {
alert('popstate is called!!!');
};
If you got no alert, that's ok...