摘要:
debounce(防抖) 与 throttle(节流) 主要是用于用户交互处理过程中的性能优化。都是为了避免在短时间内重复触发(比如scrollTop等导致的回流、http请求等)导致的资源浪费问题。 debounce与throttle的区别主要在于: 1. debounce是通过设置定时器,在延迟 阅读全文
posted @ 2019-03-21 22:15 lc_博客 阅读(206) 评论(0) 推荐(0)
posted @ 2019-03-21 22:15 lc_博客 阅读(206) 评论(0) 推荐(0)