📅  最后修改于: 2022-03-11 15:03:01.333000             🧑  作者: Mango
//Throttling prevents a function from being called more than once
//in a given window of time (ms).
throttle(this.handleClick, 1000)
//Debouncing ensures that a function will not be executed until
//after a certain amount of timehas passed since it was last called.
debounce(emitChange, 250);