function*

function* 这种声明方式(function关键字后跟一个星号)会定义一个生成器函数 (generator function),它返回一个  Generator  对象。

猜你喜欢

转载自www.cnblogs.com/Yanss/p/10466732.html