Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 369 Bytes

readme.md

File metadata and controls

25 lines (20 loc) · 369 Bytes

Delay Event

延迟事件执行,提升性能,常用与resize, scroll等

Aimeejs

aimee i delayevent --save

Node & Webpack

npm i delayevent --save

Usage

var de = new DelayEvent;

de.delay('resize', 60).done(() => console.log(123))
var de = new DelayEvent;

de.delay('scroll', 60).done(() => console.log(456))