From 5b4fe92e4c3c94ca57de6db77ee70ee05f119135 Mon Sep 17 00:00:00 2001 From: liuc Date: Wed, 15 Sep 2021 22:47:55 +0800 Subject: [PATCH 1/5] feat: Promise --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 068cbcb..838301f 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ - [事件循环](#事件循环) - [继承](#继承) - [垃圾回收](#垃圾回收) + - [Promise](#Promise) - [组件库](#组件库) - [跨端框架](#跨端框架) - [微前端](#微前端) @@ -250,6 +251,21 @@ JavaScrip 在变量被创建时分配内存,并在对象不再使用时自动 - [ ] [GC in v8](https://github.com/lrlna/sketchin/blob/master/guides/garbage-collection-in-v8.md) - [ ] [JavaScript 工作原理:内存管理 + 处理常见的 4 种内存泄漏](https://blog.sessionstack.com/how-javascript-works-memory-management-how-to-handle-4-common-memory-leaks-3f28b94cfbec),另有[中文版](https://juejin.cn/post/6844903519078580238) +### Promise + +Promise 是由社区最早提出和实现的异步编程的一种解决方案。 + +- [ ] 文档 + - [ ] [Promise-MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) + - [ ] [Promises/A+ 规范](https://promisesaplus.com/) +- [ ] 推荐文章 + - [ ] [Promise 你真的用明白了么?](https://juejin.cn/post/6869573288478113799) + - [ ] [45道Promise面试题](https://juejin.cn/post/6844904077537574919) + - [ ] [剖析Promise内部结构](https://github.com/xieranmaya/blog/issues/3) + - [ ] [100 行代码实现 Promises/A+ 规范](https://mp.weixin.qq.com/s/qdJ0Xd8zTgtetFdlJL3P1g) + - [ ] [最简实现Promise,支持异步链式调用(20行)](https://juejin.cn/post/6844904094079926286) + + ## React ### 合成事件 From 99b67645ad278b9821040e22b51ac290fde0e5aa Mon Sep 17 00:00:00 2001 From: yck Date: Wed, 15 Sep 2021 23:03:27 +0800 Subject: [PATCH 2/5] Update README.md --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 838301f..3c32584 100644 --- a/README.md +++ b/README.md @@ -256,15 +256,11 @@ JavaScrip 在变量被创建时分配内存,并在对象不再使用时自动 Promise 是由社区最早提出和实现的异步编程的一种解决方案。 - [ ] 文档 - - [ ] [Promise-MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) + - [ ] [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) - [ ] [Promises/A+ 规范](https://promisesaplus.com/) - [ ] 推荐文章 - - [ ] [Promise 你真的用明白了么?](https://juejin.cn/post/6869573288478113799) - - [ ] [45道Promise面试题](https://juejin.cn/post/6844904077537574919) - - [ ] [剖析Promise内部结构](https://github.com/xieranmaya/blog/issues/3) - - [ ] [100 行代码实现 Promises/A+ 规范](https://mp.weixin.qq.com/s/qdJ0Xd8zTgtetFdlJL3P1g) - [ ] [最简实现Promise,支持异步链式调用(20行)](https://juejin.cn/post/6844904094079926286) - + - [ ] [100 行代码实现 Promises/A+ 规范](https://mp.weixin.qq.com/s/qdJ0Xd8zTgtetFdlJL3P1g) ## React From 3b7977f98ab0687c7b2ea2504c23fce721af7f71 Mon Sep 17 00:00:00 2001 From: liuc Date: Thu, 16 Sep 2021 10:20:21 +0800 Subject: [PATCH 3/5] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=20Promise=20?= =?UTF-8?q?=E6=8E=A8=E8=8D=90=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3c32584..d8bef68 100644 --- a/README.md +++ b/README.md @@ -259,6 +259,9 @@ Promise 是由社区最早提出和实现的异步编程的一种解决方案。 - [ ] [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) - [ ] [Promises/A+ 规范](https://promisesaplus.com/) - [ ] 推荐文章 + - [ ] [深入浅出Promises](https://medium.com/@keshidong.dev/%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BApromise-69bcafbe4496) + - [ ] [The JavaScript Promise Tutorial](https://adrianmejia.com/promises-tutorial-concurrency-in-javascript-node/),另有[译文](https://cloud.tencent.com/developer/article/1696283?from=article.detail.1825559) + - [ ] [Promise 中的三兄弟 .all(), .race(), .allSettled()](https://segmentfault.com/a/1190000020034361) - [ ] [最简实现Promise,支持异步链式调用(20行)](https://juejin.cn/post/6844904094079926286) - [ ] [100 行代码实现 Promises/A+ 规范](https://mp.weixin.qq.com/s/qdJ0Xd8zTgtetFdlJL3P1g) From 05fd465177278693d088dac80fb5d5e52d254246 Mon Sep 17 00:00:00 2001 From: liuc Date: Thu, 16 Sep 2021 23:53:18 +0800 Subject: [PATCH 4/5] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20Promise=20?= =?UTF-8?q?=E6=8E=A8=E8=8D=90=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d8bef68..5aa39b7 100644 --- a/README.md +++ b/README.md @@ -259,9 +259,9 @@ Promise 是由社区最早提出和实现的异步编程的一种解决方案。 - [ ] [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) - [ ] [Promises/A+ 规范](https://promisesaplus.com/) - [ ] 推荐文章 - - [ ] [深入浅出Promises](https://medium.com/@keshidong.dev/%E6%B7%B1%E5%85%A5%E6%B5%85%E5%87%BApromise-69bcafbe4496) - - [ ] [The JavaScript Promise Tutorial](https://adrianmejia.com/promises-tutorial-concurrency-in-javascript-node/),另有[译文](https://cloud.tencent.com/developer/article/1696283?from=article.detail.1825559) - - [ ] [Promise 中的三兄弟 .all(), .race(), .allSettled()](https://segmentfault.com/a/1190000020034361) + - [Callbacks Vs Promises and basics of JS](https://theflyingmantis.medium.com/callbacks-vs-promises-and-basics-of-js-80d3d1515e81),需自备梯子 + - [ ] [ES6 Promise](https://zhuanlan.zhihu.com/p/23907711) + - [ ] [promise-fun](https://github.com/sindresorhus/promise-fun) - [ ] [最简实现Promise,支持异步链式调用(20行)](https://juejin.cn/post/6844904094079926286) - [ ] [100 行代码实现 Promises/A+ 规范](https://mp.weixin.qq.com/s/qdJ0Xd8zTgtetFdlJL3P1g) From 426b84b76ac2f13cf5be601bbc99458166bb3f06 Mon Sep 17 00:00:00 2001 From: yck Date: Fri, 17 Sep 2021 08:11:58 +0800 Subject: [PATCH 5/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5aa39b7..45b4605 100644 --- a/README.md +++ b/README.md @@ -260,10 +260,10 @@ Promise 是由社区最早提出和实现的异步编程的一种解决方案。 - [ ] [Promises/A+ 规范](https://promisesaplus.com/) - [ ] 推荐文章 - [Callbacks Vs Promises and basics of JS](https://theflyingmantis.medium.com/callbacks-vs-promises-and-basics-of-js-80d3d1515e81),需自备梯子 - - [ ] [ES6 Promise](https://zhuanlan.zhihu.com/p/23907711) - - [ ] [promise-fun](https://github.com/sindresorhus/promise-fun) - [ ] [最简实现Promise,支持异步链式调用(20行)](https://juejin.cn/post/6844904094079926286) - [ ] [100 行代码实现 Promises/A+ 规范](https://mp.weixin.qq.com/s/qdJ0Xd8zTgtetFdlJL3P1g) +- [ ] Github + - [ ] [promise-fun](https://github.com/sindresorhus/promise-fun) ## React