$(function() {
pushHistory();
});
function pushHistory() {
window.addEventListener("popstate", function(e) {
// alert("后退");
self.location.reload();
}, false);
var state = { title : "", url : "#" };
window.history.replaceState(state, "", "#");
};
注:转自:https://blog.csdn.net/achenyuan/article/details/77769992