5秒后,页面跳转

html:

<img src="img/tutu.png"/>
<div>
<span>跳过&nbsp;5s</span>
</div>

jquery:
$(function(){
$('img').css('height',$(window).height());
var text = 5;
var DSQ = setInterval(function(){
text --;
$('div span').text('跳过 '+text+'s');
if(text == 0){
clearInterval(DSQ);
//跳转
Jockey.send();//dadkja
}
},1000)
})


原文地址:https://www.cnblogs.com/mo-cha/p/5893743.html