history.pushState(history.length + 1, "message", window.location.href.split('#')[0] + "#" + new Date().getTime());
if (navigator.userAgent.indexOf('Android') != -1) {
if (typeof(tbsJs) != "undefined") {
tbsJs.onReady('{useCachedApi : "true"}', function(e) {});
window.onhashchange = function() {
location.href = '你的跳转地址';
};
} else {
window.onhashchange = function(event) {
history.go(1);
};
}
} else {
window.onhashchange = function() {
location.href = '你的跳转地址';
};
}
微信浏览器监听手机物理返回键实现无限返回
最新推荐文章于 2023-03-30 14:18:31 发布