Skip to content

Latest commit

 

History

History

throttle

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

throttle

函数节流。

// Returns a function, that, when invoked, will only be triggered at most once
// during a given window of time. Normally, the throttled function will run
// as much as it can, without ever going more than once per `wait` duration;
// but if you'd like to disable the execution on the leading edge, pass
// `{leading: false}`. To disable execution on the trailing edge, ditto.

参考自underscore/throttle