
97

JavaScript 高级系列之节流 [throttle] 与防抖 [debounce]
source link: https://juejin.im/post/5a0b10726fb9a044fc444311
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

一、概念这两个东西都是为了项目优化而出现的,官方是没有具体定义的,他们的出现主要是为了解决一些短时间内连续执行的事件带来性能上的不佳和内存的消耗巨大等问题;像这类事件一般像 scroll keyup mousemove resize等等,短时间内不断的触发,在
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK