pushHistory();
window.addEventListener("popstate", function(e) {
window.location = data.info.advert.link(要跳转的页面地址));
}, false);
function pushHistory(){
var state = {
title: "title",
url: "#"
};
window.history.pushState(state, "title", "#");
}
JS监听手机物理返回键,返回到指定页面
点赞
收藏