UNPKG
rikdat
Version:
latest (1.0.1)
1.0.1
1.0.0
提供了防抖和节流的完善功能,实现了参数传递和对回调函数的事件对象绑定功能
rikdat
/
index.js
15 lines
(13 loc)
•
324 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//包的入口文件,require()导入的就是这个文件
// const debounce = require('./debounce')
// const throttle = require('./throttle')
// module.export = {
// debounce,
// throttle
// }
import
debounce
from
'./debounce'
import
throttle
from
'./throttle'
export
default
{ debounce, throttle }