/点击浏览器上的返回按钮,返回上一页并刷新
$(document).ready(function($) {
if (window.history && window.history.pushState) {
$(window).on('popstate', function() {
var hashLocation = location.hash;
var hashSplit = hashLocation.split("#!/");
var hashName = hashSplit[1];
if (hashName !== '') {
var hash = window.location.hash;
if (hash === '') {
self.location=document.referrer;
}
}
});
window.history.pushState(null, null, '');
}
});