2019年8月27日

防抖函数

摘要: export function debounce(func, wait, immediate) { let timeout, args, context, timestamp, result const later = function() { // 据上一次触发时间间隔 const last = 阅读全文

posted @ 2019-08-27 17:26 冰love 阅读(307) 评论(0) 推荐(0) 编辑

导航