Beace Lee

Beace Blog

Written by Beace Lee who lives and works in China building useful things. You should follow him on Twitter

ECMAScript 2015 Features-c06-generators

February 21, 2017

ECMAScript 2015 Features

Generators

可以使用*yield关键字实现generatorsgenerator可以生成迭代的下一个值,并通过yiedl返回。

写法

function fibonacci(n) {

}