Javascript生成器函数可以用箭头函数表示出来吗

不可以。

参考:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

Use of the yield keyword

The yield keyword may not be used in an arrow function's body (except when permitted within functions further nested within it). As a consequence, arrow functions cannot be used as generators.

你可能感兴趣的:(node,javascript,lambda)