throttle-debounce:油门和反跳功能

时间:2021-05-06 04:19:07
【文件属性】:
文件名称:throttle-debounce:油门和反跳功能
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-06 04:19:07
JavaScript 油门反跳 油门和反跳功能。 该模块与(但),但已转换为ES模块和CommonJS格式。 安装 npm install throttle-debounce --save 用法 throttle import { throttle } from 'throttle-debounce' ; const throttleFunc = throttle ( 1000 , false , ( num ) => { console . log ( 'num:' , num ) ; } ) ; // Can also be used like this, because noTrailing is false by default const throttleFunc = throttle ( 1000 , ( num ) => { console . log ( 'num:' , num )
【文件预览】:
throttle-debounce-master
----.eslintrc(301B)
----rollup.config.js(1KB)
----.browserslistrc(24B)
----.babelrc(501B)
----.travis.yml(36B)
----test()
--------.eslintrc(69B)
--------.webpack.js(132B)
--------index.js(8KB)
----.prettierrc(456B)
----LICENSE.md(17KB)
----README.md(6KB)
----throttle.js(4KB)
----.lintstagedrc(180B)
----.huskyrc(49B)
----.npmrc(19B)
----.editorconfig(239B)
----.gitignore(108B)
----debounce.js(1KB)
----index.js(102B)
----karma.conf.js(2KB)
----CHANGELOG.md(1KB)
----package.json(3KB)

网友评论