//监控物理返回按键
var bool = false;
function backOrder(){
pushHistory();
setTimeout(function() {
bool = true;
}, 500);
window.addEventListener("popstate", function(e) {
if (bool) {
//监听点击返回按钮
clickFinished();
}else{//此处为这个项目处理返回的特殊处理,正常不需要
location.reload('get');
}
pushHistory();
}, false);
function pushHistory() {
var state = {
title: "title",
url: "#"
};
window.history.pushState(state, "title", "#");
}
}