58

虾扯蛋之函数防抖和节流

 5 years ago
source link: https://juejin.im/post/5b45fa596fb9a04fad3a0268
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.
背景 今天在coding的时候,做了一个搜索框,也正是这个搜索框,让我和后台小伙伴直接由铁磁变为塑料兄弟。那到底发生啥了呢?其实很简单,其实很无奈,就是我用王者的手速把他的接口访问崩了! 我们在平时开发的时候,会有很多场景会频繁触发事件,比如说

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK