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

Merge pull request #227 from SudoKillMe/patch-1

Update generator.md
This commit is contained in:
Ruan YiFeng 2016-07-12 07:51:14 +08:00 committed by GitHub
commit e2fe0529d0

View File

@ -309,7 +309,7 @@ genObj.next('b')
## for...of循环 ## for...of循环
`for...of`循环可以自动遍历Generator函数且此时不再需要调用`next`方法。 `for...of`循环可以自动遍历调用Generator函数时生成的Iterator对象,且此时不再需要调用`next`方法。
```javascript ```javascript
function *foo() { function *foo() {