mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 19:22:21 +00:00
Merge pull request #132 from CntChen/gh-pages
修正generator.md yield* 示例代码的一个误解
This commit is contained in:
commit
f4f7f6e9e6
@ -735,7 +735,7 @@ function* bar() {
|
|||||||
function* bar() {
|
function* bar() {
|
||||||
yield 'x';
|
yield 'x';
|
||||||
for (let v of foo()) {
|
for (let v of foo()) {
|
||||||
console.log(v);
|
yield v;
|
||||||
}
|
}
|
||||||
yield 'y';
|
yield 'y';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user