jquery倒计时过几秒页面跳转 js倒计时

//银行认证成功跳转
var time=setInterval (showTime, 1000);
var second=5;
function showTime()
{
if(second==0)
{
window.location="/account/toCardBindPc.shtml";
clearInterval(time);
}
$(".sub-text").html('<font>'+second+'s</font> 后将跳转到银行卡认证页面。');
second--;
}

原文地址:https://www.cnblogs.com/iqian/p/5681981.html