We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d982a commit 8e79fe3Copy full SHA for 8e79fe3
ThinkPHP/Tpl/dispatch_jump.tpl
@@ -33,8 +33,11 @@ body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16p
33
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
34
var interval = setInterval(function(){
35
var time = --wait.innerHTML;
36
- (time == 0) && (location.href = href);
37
-}, 1000);
+ if(time == 0) {
+ location.href = href;
38
+ clearInterval(interval);
39
+ };
40
+}, 1000);
41
})();
42
</script>
43
</body>
0 commit comments