$(function () {
            pushHistory();
            setTimeout(function () {
                window.addEventListener("popstate", function (e) {
                goToList();
                pushHistory();
            }, false);
            }, 500);
            
            function pushHistory() {
                var state = {
                    title: "title",
                    url: "#"
                };
                window.history.pushState(state, "title", "#");
            }
        });
        function goToList() {
            
            window.location = "xxxxxadf";
            
        }

 解决办法,加延迟。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-10-05
  • 2022-01-16
猜你喜欢
  • 2018-12-12
  • 2022-12-23
  • 2021-12-05
  • 2022-02-26
  • 2022-01-28
相关资源
相似解决方案