var loadDateTime = new Date();
window.location.href = 'app提供的地址';
setTimeout(() => {
var timeOutDateTime = new Date();
if((!document.hidden) && timeOutDateTime - loadDateTime < 5000) {
window.location.href = '下载页链接';
}
},3000)
网友评论