Underscore debounce vs vanilla Javascript setTimeout

前端 未结 4 2143
有刺的猬
有刺的猬 2021-02-08 19:20

I understand that debounce in Undercore.js returns a function that will postpone its execution until the wait time is over.

My question is, is there an adva

4条回答
  •  没有蜡笔的小新
    2021-02-08 19:52

    I came across a blog post which has much clearer explanation on debounce and throttle. Do check it out if above answers seems confusing. It helped me clear my doubts. Debounce and Throttle in Javascript

提交回复
热议问题