设置手机网页返回至指定页面

pushHistory();
window.addEventListener("popstate", function(e) {
  window.location = '需返回的页面路径'
}, false);
function pushHistory() {
  var state = {
    title: "title",
    url: "#"
    };
  window.history.pushState(state, "title", "#");
}
原文地址:https://www.cnblogs.com/xuanjiange/p/13809467.html