mirror of
https://github.com/KieSun/all-of-frontend.git
synced 2024-11-22 14:58:14 +08:00
feat: 节流与防抖
This commit is contained in:
parent
76258c6af3
commit
c2e9a828c7
11
README.md
11
README.md
@ -188,6 +188,17 @@ JS 数据类型分为两大类及八种数据类型,注意别漏了 ES6 新增
|
|||||||
- [ ] [JavaScript 中的继承](https://medium.com/@happymishra66/inheritance-in-javascript-21d2b82ffa6f),需自备梯子
|
- [ ] [JavaScript 中的继承](https://medium.com/@happymishra66/inheritance-in-javascript-21d2b82ffa6f),需自备梯子
|
||||||
- [ ] [JS 类继承](https://javascript.info/class-inheritance),另有 [中文翻译版](https://zh.javascript.info/class-inheritance)
|
- [ ] [JS 类继承](https://javascript.info/class-inheritance),另有 [中文翻译版](https://zh.javascript.info/class-inheritance)
|
||||||
|
|
||||||
|
### 节流与防抖
|
||||||
|
|
||||||
|
节流指连续触发事件的情况下,在某个时间段内,函数只会执行一次。
|
||||||
|
防抖指在事件被触发后一定时间后再执行回调函数,如果在一定时间内,该事件又被重复触发,则重启计时。
|
||||||
|
|
||||||
|
- [ ] 推荐文章
|
||||||
|
- [ ] [函数防抖与函数节流](https://zhuanlan.zhihu.com/p/38313717)
|
||||||
|
- [ ] [浅谈 JS 防抖和节流](https://segmentfault.com/a/1190000018428170)
|
||||||
|
- [ ] [Debounce – How to Delay a Function in JavaScript](https://www.freecodecamp.org/news/javascript-debounce-example/),需自备梯子
|
||||||
|
- [ ] [Debouncing and Throttling in JavaScript](https://www.telerik.com/blogs/debouncing-and-throttling-in-javascript),需自备梯子
|
||||||
|
|
||||||
## 跨端框架
|
## 跨端框架
|
||||||
|
|
||||||
跨端的最主要的含义就是一套代码多端运行,减少重复劳动
|
跨端的最主要的含义就是一套代码多端运行,减少重复劳动
|
||||||
|
Loading…
Reference in New Issue
Block a user