Skip to content

Commit b622298

Browse files
committed
generator函数本身没有next()方法
1 parent 2bd0cbb commit b622298

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/generator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ function* loadUI() {
107107
yield loadUIDataAsynchronously();
108108
hideLoadingScreen();
109109
}
110-
110+
var loader = loadUI();
111111
// 加载UI
112-
loadUI.next()
112+
loader.next()
113113

114114
// 卸载UI
115-
loadUI.next()
115+
loader.next()
116116

117117
```
118118

0 commit comments

Comments
 (0)