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 === '') {
window.location.href = "{:url('staff_admin/Myinfo/mydata')}"//后退返回自定义路径
} } });
window.history.pushState('forward', null, '');
}
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/164172.html原文链接:https://javaforall.cn