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