微信浏览器中返回键bug
pushHistory();
window.addEventListener("popstate", function (e) {
//pushHistory();
window.location.href = "http://"+hostPath+"/a.html?b=1#";
}, false);
function pushHistory() {
var state = {
title: "title",
url: "#"
};
window.history.pushState(state, "title", "#");
}