Skip to content

为什么debounce,throttle,不考虑加入options呢? #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cicada-ah opened this issue Sep 15, 2021 · 1 comment
Closed

为什么debounce,throttle,不考虑加入options呢? #63

cicada-ah opened this issue Sep 15, 2021 · 1 comment

Comments

@cicada-ah
Copy link

cicada-ah commented Sep 15, 2021

lodash,是提供了这两个参数的,可以更灵活控制,看源码似乎,添加这样的参数并没有产生bug影响。故请教一下原因

[options.leading=true] (boolean): 指定调用在节流开始前。
[options.trailing=true] (boolean): 指定调用在节流结束后。

@John60676
Copy link
Member

等待发版

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants