1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

docs(generator): edit title

This commit is contained in:
ruanyf 2017-02-03 01:47:34 +08:00
parent 6e944000df
commit 3c401eaa3c
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# Generator 函数:异步操作
# Generator 函数的异步应用
异步编程对 JavaScript 语言太重要。Javascript 语言的执行环境是“单线程”的,如果没有异步编程,根本没法用,非卡死不可。本章主要介绍 Generator 函数如何完成异步操作。

View File

@ -1,10 +1,10 @@
# Generator 函数语法
# Generator 函数语法
## 简介
### 基本概念
Generator 函数是 ES6 提供的一种异步编程解决方案语法行为与传统函数完全不同。本章详细介绍Generator 函数的语法和 API它的异步编程应用请看《Generator 函数:异步操作》一章。
Generator 函数是 ES6 提供的一种异步编程解决方案语法行为与传统函数完全不同。本章详细介绍Generator 函数的语法和 API它的异步编程应用请看《Generator 函数的异步应用》一章。
Generator 函数有多种理解角度。从语法上首先可以把它理解成Generator 函数是一个状态机,封装了多个内部状态。

View File

@ -21,8 +21,8 @@
1. [Reflect](#docs/reflect)
1. [Promise 对象](#docs/promise)
1. [Iterator 和 for...of 循环](#docs/iterator)
1. [Generator 函数语法](#docs/generator)
1. [Generator 函数:异步操作](#docs/generator-async)
1. [Generator 函数语法](#docs/generator)
1. [Generator 函数的异步应用](#docs/generator-async)
1. [async 函数](#docs/async)
1. [Class](#docs/class)
1. [Decorator](#docs/decorator)