debounceify:微小的异步去抖动器

时间:2024-06-16 08:01:56
【文件属性】:

文件名称:debounceify:微小的异步去抖动器

文件大小:3KB

文件格式:ZIP

更新时间:2024-06-16 08:01:56

JavaScript

去抖动 微小的异步去抖动器 npm install debounceify 用法 const debounceify = require ( 'debounceify' ) const debounced = debounceify ( async function ( ) { console . log ( 'Running...' ) await new Promise ( resolve => setTimeout ( 1000 , resolve ) ) } ) const a = debounced ( ) // triggers the about function const b = debounced ( ) const c = debounced ( ) const d = debounced ( ) // these last 3 wait for the


【文件预览】:
debounceify-master
----index.js(497B)
----test.js(736B)
----package.json(567B)
----LICENSE(1KB)
----.gitignore(24B)
----README.md(853B)

网友评论