mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
edit docs/generator
This commit is contained in:
parent
4880c25772
commit
bf3d1658a4
@ -221,7 +221,7 @@ for(let value of delegatingIterator) {
|
||||
|
||||
上面代码中,delegatingIterator是代理者,delegatedIterator是被代理者。由于`yield* delegatedIterator`语句得到的值,是一个遍历器,所以要用星号表示。
|
||||
|
||||
下面是一个稍微复杂的例子,使用yield*语句遍历二叉树。
|
||||
下面是一个稍微复杂的例子,使用yield*语句遍历完全二叉树。
|
||||
|
||||
```javascript
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user