監聽 返回按鈕事件

  pushHistory();         window.addEventListener("popstate", function (e) {             location.href = '@Url.Action("Index", "Account")' + "?openid=" + openid;         }, false); function pushHistory() {         var state = {             title: "title",             url: "#"         };         window.history.pushState(state, "title", "#");     }
相關文章
相關標籤/搜索