javascript">beforeDestroy() {
clearInterval(this.timer);
},
created () {
this.timer = setInterval(() => {
this.autoPlay() //你的方法
}, 1000)
},
javascript">beforeDestroy() {
clearInterval(this.timer);
},
created () {
this.timer = setInterval(() => {
this.autoPlay() //你的方法
}, 1000)
},