let time = 10
let intervalFunc = window.setInterval(() => {
time = time - 1
if (time < 1) {
window.clearInterval(intervalFunc)
}
}, 1000)
let time = 10let intervalFunc = window.setInterval(() => {time = time - 1if (time < 1) {window.clearInterval(intervalFunc)}}, 1000) 转载于:ht...
let time = 10
let intervalFunc = window.setInterval(() => {
time = time - 1
if (time < 1) {
window.clearInterval(intervalFunc)
}
}, 1000)
转载于:https://www.cnblogs.com/fm060/p/10751687.html
更多推荐
所有评论(0)