mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +00:00
generator函数本身没有next()方法
This commit is contained in:
parent
2bd0cbbedb
commit
b622298cde
@ -107,12 +107,12 @@ function* loadUI() {
|
|||||||
yield loadUIDataAsynchronously();
|
yield loadUIDataAsynchronously();
|
||||||
hideLoadingScreen();
|
hideLoadingScreen();
|
||||||
}
|
}
|
||||||
|
var loader = loadUI();
|
||||||
// 加载UI
|
// 加载UI
|
||||||
loadUI.next()
|
loader.next()
|
||||||
|
|
||||||
// 卸载UI
|
// 卸载UI
|
||||||
loadUI.next()
|
loader.next()
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user