防抖与节流

//=>防抖:每隔wait时间只可以执行一次 function debounce(func, wait, immediate) { let result = null, timeout = null; return function(...args) { let context = this, //
posted @ 2022-12-06 16:56  暗夜精灵123  Views(12)  Comments(0Edit  收藏  举报