摘要:
```
data: { return { timer: null }
},
created() { this.timer = setInterval(....);
},
beforeDestroy() { if(this.timer) { //如果定时器还在运行 或者直接关闭,不用判断 clearInterval(this.timer... 阅读全文
posted @ 2018-08-21 08:18
geek程序员
阅读(9901)
评论(0)
推荐(1)

浙公网安备 33010602011771号