From 46fffe63316cdc0fedd2a72e137e2f7a0288d646 Mon Sep 17 00:00:00 2001 From: YangJ0605 <1442122744@qq.com> Date: Fri, 12 Jun 2020 12:10:48 +0800 Subject: [PATCH] learn --- generator.js | 4 ++-- .../index.html" | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 "\345\244\232\346\226\207\344\273\266\344\270\212\344\274\240\346\265\213\350\257\225/index.html" diff --git a/generator.js b/generator.js index 2788187..df5ad35 100644 --- a/generator.js +++ b/generator.js @@ -35,7 +35,7 @@ function run(gen) { _next() } */ -// run(mtGenerator) +run(mtGenerator) function run(gen) { return new Promise((resolve, reject) => { @@ -70,4 +70,4 @@ function* myGenerator() { } const result = run(myGenerator) //result是一个Promise -//输出 1 2 error \ No newline at end of file +//输出 1 2 error diff --git "a/\345\244\232\346\226\207\344\273\266\344\270\212\344\274\240\346\265\213\350\257\225/index.html" "b/\345\244\232\346\226\207\344\273\266\344\270\212\344\274\240\346\265\213\350\257\225/index.html" new file mode 100644 index 0000000..e8c9667 --- /dev/null +++ "b/\345\244\232\346\226\207\344\273\266\344\270\212\344\274\240\346\265\213\350\257\225/index.html" @@ -0,0 +1,22 @@ + + +
+ + +