es6中代码 想打印一下报错function* add(){ yield "hello"; yield "world"; return "encoding";
}
let ad=add();
console.log(ad.next())
console.log(ad.next())
console.log(ad.next());
console.log(1)
1 回答
- 1 回答
- 0 关注
- 537 浏览
添加回答
举报
0/150
提交
取消