util-lib-throttle
v1.0.0
Published
Throttle method of encapsulation integration
Downloads
2
Readme
util-lib-throttle
Throttle method of encapsulation integration
Usage
const utils = require('util-lib-throttle');
// 绑定滚动事件
window.addEventListener('scroll', utils.throttle(function (e) {
console.log(11);
}, 2000))