摘要: function* bar() { const result = yield new Promise((resolve, reject) => { setTimeout(() => { resolve('Hello Generator'); }, 3000); }); console.log(res 阅读全文
posted @ 2020-07-23 20:32 林中有风 阅读(245) 评论(0) 推荐(0) 编辑