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 回答
- 0 關注
- 545 瀏覽
添加回答
舉報
0/150
提交
取消