- Throttle(...args): ((target: any, _propertyKey: string, descriptor: PropertyDescriptor) => void)
参数
动态参数
...args: [interval: number, options: {
invalidCB?: ((timeCountDown: number) => void);
trailing?: boolean;
leading?: boolean;
}]
返回 ((target: any, _propertyKey: string, descriptor: PropertyDescriptor) => void)
- (target, _propertyKey, descriptor): void
参数
- target: any
- _propertyKey: string
- descriptor: PropertyDescriptor
返回 void
节流装饰器
参阅
throttle
示例