微件:倒计时/js:修订间差异
Lily Ellenvia(留言 | 贡献) 小无编辑摘要 |
Lily Ellenvia(留言 | 贡献) 小无编辑摘要 |
||
第1行: | 第1行: | ||
<includeonly><script> | <includeonly><script> | ||
window.addEventListener("load", function() { | window.addEventListener("load", function() { | ||
CountDownShort(); | //CountDownShort(); | ||
var i = window.setInterval(function () { | var i = window.setInterval(function () { | ||
if (new Date().getSeconds() == 0) { | if (new Date().getSeconds() == 0) { | ||
window.clearInterval(i); | window.clearInterval(i); | ||
CountDownShort(); | console.log(1); | ||
//CountDownShort(); | |||
window.setInterval(CountDownShort, 60000); | window.setInterval(CountDownShort, 60000); | ||
} | } |