vue路由跳转 定时器 没有清掉 ?

项目中碰到的问题。web 组件A svg 页面一加载,执行一个定时器,往控制台打印1函数 created:function() { this.t = window.setInterval(this.cons,1000) }, methods:{ cons () { console.log(1) } } 组件A能跳转到组件B,使用router-link 完成跳转。this 此时在
相关文章
相关标签/搜索