File tree Expand file tree Collapse file tree 4 files changed +34
-4
lines changed
Expand file tree Collapse file tree 4 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 1+ 更新记录
2+ ========
3+
4+ 方便大家日后跟进阅读。
5+
6+ ## 2017-07-16
7+
8+ * 增加在 Vuex 的 action 中返回 Promise 对象,实现 ` dispatch ` 时处理异步的内容。
Original file line number Diff line number Diff line change 99
1010这套方案在迭代中逐步完善,最终被吸收进 ES2015。不仅如此,ES2017 中还增加了 Await/Async,可以用顺序的方式书写异步代码,甚至可以正常抛出捕获错误,维护同一个栈。可以说彻底解决了异步回调的问题。
1111
12- 现在大部分浏览器和 Node.js 都已原生支持 Promise,很多类库也开始返回 Promise 对象,更有各种降级适配策略。Node.js 7+ 则实装了 Await/Async。如果您现在还不会使用,那么我建议您尽快学习一下。本场 Chat 我准备结合近期的开发经验,全面介绍 现代化的 JavaScript 异步开发。
12+ 现在大部分浏览器和 Node.js 都已原生支持 Promise,很多类库也开始返回 Promise 对象,更有各种降级适配策略。Node.js 7+ 则实装了 Await/Async。如果您现在还不会使用,那么我建议您尽快学习一下。本文我准备结合近期的开发经验,全面介绍现代化的 JavaScript 异步开发。
13+
14+ ## 关于这本书
15+
16+ 这本书最开始的内容源于我在 [ SegmentFault] ( https://segmentfault.com/ ) 做的一场分享: [ Promise 的 N 种用法] ( https://segmentfault.com/l/1500000008757392 ) 。
17+
18+ 后来去 GitChat 分享时,选题比较犯难,就跟运营妹子商量要不再做一次同样题目,这样我也省事儿。结果挂出来后乏人问津,只好再跟运营开会讨论,然后决定更名为[ 《JavaScript 异步开发攻略》] ( http://gitbook.cn/books/594541981b8e4b4036720fc9/index.html ) ,并且增加非 Promise 的内容。改名后终于过了下限,然后我就动手写,于是便有了这本小书。
19+
20+ 我写这本书时就打算根据环境发展随时更新内容,没想到 GitChat 设计成后期不允许修改文章,要改只能把内容发给运营人工修改。因为我写的时候为了分章节好维护好管理,用的是 Git + Gitbook,索性脆放到 Gitbook 上好了。名字也改成现在这个样子,增加一个“全”字。
1321
1422## 目标读者要求
1523
16241 . 前端水平:初级、中级
17252 . 了解 JavaScript
18- 3 . 最好有异步开发经验 ,希望写出更好的代码
26+ 3 . 最好有异步开发经历 ,希望写出更好的代码
1927
2028## 名词及约定
2129
4351
4452## 反馈
4553
46- 如果您对于文中的内容有任何疑问,请在评论中告诉我 。亦可发邮件给我:meathill[ at] gmail.com。谢谢。
54+ 如果您对于文中的内容有任何疑问,请在评论或 [ Issue ] ( https://github.com/meathill/javascript-async-tutorial/issues ) 中告诉我 。亦可发邮件给我:meathill[ at] gmail.com。谢谢。
Original file line number Diff line number Diff line change 1717 * [ 小程序] ( 04-2-xiaochengxu.md )
1818 * [ 其它场景] ( 04-3-other.md )
1919 * [ Vuex] ( 04-4-vuex.md )
20- * [ 回顾] ( 10-review.md )
20+ * [ 回顾] ( 10-review.md )
21+ * [ 更新记录] ( CHANGELOG.md )
22+ * [ 待增补内容] ( TODO.md )
Original file line number Diff line number Diff line change 1+ 待增补内容
2+ ========
3+
4+ 这里主要放日常看到,但暂时写不进去的内容。
5+
6+ ## Vue 2.4
7+
8+ 其[ 更新日志] ( https://github.com/vuejs/vue/releases/tag/v2.4.0 ) 中写到:
9+
10+ * Full SSR + async component support in core: SSR now supports rendering async components used anywhere and the client also supports async components during the hydration phase. This means async components / code-splitting now just works during SSR and is no longer limited at the route level.
11+
12+ 看看是不是合适加进去。
You can’t perform that action at this time.
0 commit comments