摘要: data () { return { // 用于保存防抖的定时器 timeout: null, } } methods: { // 防抖函数 debounce (fn, delay) { if (this.timeout) { clearTimeout(this.timeout) } this.ti 阅读全文
posted @ 2022-09-30 12:25 Ocean- 阅读(280) 评论(0) 推荐(0)