Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

摘要: Document 在前端开发中,会遇到一些频繁触发的事件监听器(scroll、mousemove、resize) 这样会频繁的调用JS,造成卡顿、更严重的性能问题 防抖:在事件触发 N 秒后调用事件,如果这 N 秒内又被触发,则重新计时 let debounce = function(fn,wait 阅读全文
posted @ 2020-10-30 10:24 365/24/60 阅读(163) 评论(0) 推荐(0) 编辑