function pushHistory(){
var state = {
title: "",
url: "#"
};
window.history.pushState(state, state.title, state.url);
}
function win_close(){
if (typeof WeixinJSBridge != "undefined") {
WeixinJSBridge.call("closeWindow");
} else {
if (navigator.userAgent.indexOf("MSIE") > 0) {
if (navigator.userAgent.indexOf("MSIE 6.0") > 0) {
window.opener = null;
window.close();
} else {
window.open("", "_top");
window.top.close();
}
} else if (navigator.userAgent.indexOf("Firefox") > 0) {
window.location.href = "about:blank ";
} else {
window.opener = null;
微信公众号监听页面返回事件
最新推荐文章于 2024-04-15 10:59:41 发布