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)
相关分类