//修改后退路径,拦截浏览器后退,并弹出窗口 |
function backAlert() { |
var page=location.href,stata={ 'page' : 1}, |
backAlertE=$( '#backModal' ); |
window.history.pushState(stata, null , page); |
if (window.history && window.history.pushState&&backAlertE) { |
window.onpopstate= function () { |
backAlertE.style.display= 'block' ; |
} |
} |
} |