<script type="text/javascript">
var t = 5; //倒计时的秒数
function showTime(){
document.getElementById('time').innerHTML= t +"S后跳转到首页";
if(t==0){
var ua = navigator.userAgent;
if(ua.indexOf('iPhone')>=0){
window.location.href="openApp.jdmobile://virtual?params={\"category\":\"jump\",\"des\":\"HomePage\"}";
}
if(ua.indexOf('android')>=0){
window.location.href="openApp.jdMobile://360buy?type=1";
}
else {
window.location.href="http://m.jd.com";
}
}
t -= 1;
if(t>=0){
setTimeout("showTime()",1000);
}
}
window.onload=function(){ showTime();
}
</script>

相关文章:

  • 2021-05-23
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2021-08-16
  • 2021-07-13
  • 2022-01-20
相关资源
相似解决方案