vue清除定时器,clearInterval
let time = 10let intervalFunc = window.setInterval(() => {
time = time - 1
if (time < 1) {
window.clearInterval(intervalFunc)
}
}, 1000)
以上是 vue清除定时器,clearInterval 的全部内容, 来源链接: utcz.com/z/376123.html
let time = 10let intervalFunc = window.setInterval(() => {
time = time - 1
if (time < 1) {
window.clearInterval(intervalFunc)
}
}, 1000)
以上是 vue清除定时器,clearInterval 的全部内容, 来源链接: utcz.com/z/376123.html