Merge pull request #59 from zhanghao-zhoushan/main

柯里化(Currying)
pull/64/head
yck 2021-09-16 10:45:35 +08:00 committed by GitHub
commit 9b4a744201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -234,7 +234,7 @@ JS 数据类型分为两大类及八种数据类型,注意别漏了 ES6 新增
#### 节流与防抖
节流指连续触发事件的情况下,在某个时间段内,函数只会执行一次。
防抖指在事件被触发一定时间后再执行回调函数,如果在一定时间内该事件又被重复触发,则重启计时。
防抖指在事件被触发一定时间后再执行回调函数,如果在一定时间内该事件又被重复触发,则重启计时。
- [ ] 推荐文章
- [ ] [函数防抖与函数节流](https://zhuanlan.zhihu.com/p/38313717)
@ -242,6 +242,15 @@ JS 数据类型分为两大类及八种数据类型,注意别漏了 ES6 新增
- [ ] [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)
#### 柯里化Currying
柯里化就是将接收多个参数的函数转换成接收一个参数的函数。
- [ ] 推荐文章
- [ ] [柯里化Currying](https://zh.javascript.info/currying-partials)
- [ ] [JavaScript 专题之函数柯里化](https://github.com/mqyqingfeng/Blog/issues/42)
- [ ] [Understanding Currying in JavaScript](https://blog.bitsrc.io/understanding-currying-in-javascript-ceb2188c339),需自备梯子,另有 [中文翻译版](https://www.cnblogs.com/GeniusLyzh/p/9937829.html)
#### 垃圾回收
JavaScrip 在变量被创建时分配内存,并在对象不再使用时自动释放内存,这个过程被称为垃圾回收。另外我们主要学习 V8 引擎下的垃圾回收机制。