1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-31 07:07:26 +00:00

Merge pull request #12 from rhgb/patch-1

generator函数本身没有next()方法
This commit is contained in:
ruanyf 2014-05-30 15:57:28 +08:00
commit 63872d3ff1

View File

@ -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()
``` ```