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