Discuss / JavaScript / 练习

练习

Topic source
'use strict';
function* next_id() {

var id = 1;
while (true) {
    yield id ++
    }
}

  • 1

Reply