beforeDestroy() {
clearInterval(this.timer);
},
created () {
this.timer = setInterval(() => {
this.autoPlay() //你的方法
}, 1000)
},
beforeDestroy() {
clearInterval(this.timer);
},
created () {
this.timer = setInterval(() => {
this.autoPlay() //你的方法
}, 1000)
},
共有条评论 网友评论