var num = 3;var timer = null;$('#window').html(num+ '秒后干啥');clearInterval(timer);timer = setInterval(function(){ num--; if(num<1) { clearInterval(timer); window.location.href = "" } $('#window').html(num+'秒后干啥');},1000);
posted on 2016-08-03 10:16 java疯子 阅读(1365) 评论(0) 编辑 收藏 举报