$(function(){ pushHistory(); window.addEventListener("popstate",function(e){ location.href=‘跳转的URL‘; }); function pushHistory() { var state = { title: "title", url: "#" }; window.history.pushState(state, "title", "#"); } });
标签:win blog pst stat ati function 指定 返回 post
$(function(){ pushHistory(); window.addEventListener("popstate",function(e){ location.href=‘跳转的URL‘; }); function pushHistory() { var state = { title: "title", url: "#" }; window.history.pushState(state, "title", "#"); } });
标签:win blog pst stat ati function 指定 返回 post
原文地址:https://www.cnblogs.com/xiaoyu5062/p/8492454.html