摘要: 通常有2种清除方式: 1、在beforeDestroy或者destroyed钩子函数中执行清除: data() { return { timer: null // 定时器名称 } }, mouted() { this.timer = (() => { //定时器的 js操作 }, 1000) }, 阅读全文
posted @ 2021-07-09 15:34 逸凨 阅读(1884) 评论(0) 推荐(0) 编辑