防抖!!! 25重for循环 2022-05-18 70 阅读1分钟 data(){ retrun { timer: null, } } methods: { demo(){ clearTimeout(this.timer); this.timer = setTimeout(() => { console.log(cc.join(",")); }, 1000); } }