摘要: common.js // 防抖 export const debounce = function(method, delay) { // 定时器,用来 setTimeout var timer; // 返回一个函数,这个函数会在一个时间区间结束后的 delay 毫秒时执行 fn 函数 return 阅读全文
posted @ 2022-10-14 10:56 潇潇-lucky 阅读(186) 评论(0) 推荐(0) 编辑