Javascript生成器函数可以用箭头函数表示出来吗
不可以。参考:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functionsUse of theyieldkeywordTheyieldkeyword may not be used in an arrow function's body (except when permitted within functions further nested within it)...
原创
2020-10-14 14:57:15 ·
1035 阅读 ·
0 评论