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--;
            }
        }
全部教程http://each.sinaapp.com/angular/index.html
原文地址:https://www.cnblogs.com/xfdmb/p/6178708.html