首页 > 代码库 > jq倒计时

jq倒计时

 var referTime = 5;
        setInterval("refer(‘#show‘)", 1000);
        function refer(obj){
            if(referTime === 0){
                location="demo.kppw.cn";
            }else if(referTime>0){
                $(obj).text(referTime);
                referTime--;
            }
        }

 

jq倒计时