vue:定时器setInterval与setTimeout

https://blog.csdn.net/liona_koukou/article/details/84943467?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param

 

setInterval不会清除定时器队列,会越来越卡,解决方法如上。

setTimeout自带清除定时器方法

posted @ 2020-09-03 17:46  吾本人间一叶茶  阅读(209)  评论(0)    收藏  举报
Live2D