$(function(){ pushHistory(); window.addEventListener("popstate",function(e){ location.href=‘跳转的URL‘; }); function pushHistory() { var state = { title: "title", url: "#" }; window.history.pushState(state, "title", "#"); } });
2023-12-02 14:00:58
$(function(){ pushHistory(); window.addEventListener("popstate",function(e){ location.href=‘跳转的URL‘; }); function pushHistory() { var state = { title: "title", url: "#" }; window.history.pushState(state, "title", "#"); } });