$(function(){
if (window.history && window.history.pushState) {
window.addEventListener("popstate", function (e) { //回调函数中实现需要的功能
// alert("我监听到了浏览器的返回按钮事件啦");
window.location.href = \'index.html?id=\' + F_EmployeeId + \'&AppId=\' + localStorage.getItem(\'AppId\'); //在这里指定其返回的地址
}, false);
!function () {
var state = {
title: "title",
url: "#"
};
window.history.pushState(state, "url", "#");
}();
}
});
相关文章:
- IOS微信浏览器返回事件监听问题 2022-12-23
- js监听微信浏览器返回按钮事件 2022-12-23
- 微信公众号 - 全局返回码说明 2022-02-07
- 微信公众号返回码——查阅(备份) 2021-10-30
- 微信公众号调用接口返回码 2021-08-31
- 微信公众号全局返回码说明 2021-07-02
- js监听返回事件,返回直接关闭窗口事件(微信网页返回关闭) 2021-11-19
- 微信公众号开发 回复事件(测试账号) 2021-11-16