html5手机返回键,h5安卓物理返回键
if(window.history &&window.history.pushState) {$(window).on('popstate',function() {varhashLocation=location.hash;varhashSplit=hashLocation.split("#!/");varhashName=hashSplit[1];if(hashName!=='
·
if(window.history &&window.history.pushState) {
$(window).on('popstate',function() {
varhashLocation=location.hash;
varhashSplit=hashLocation.split("#!/");
varhashName=hashSplit[1];
if(hashName!=='') {
varhash=window.location.hash;
if(hash==='') {
location.href='你的地址'
}
}
});
window.history.pushState('forward',null,'payment.html?streamCode='+getUrlParam('streamCode')+'&totalPrice='+getUrlParam('totalPrice'));
}
更多推荐
已为社区贡献3条内容
所有评论(0)