复制1function* generatorOne() { 2 yield ['a', 'b', 'c']; 3} 4 5function* generatorTwo() { 6 yield* ['a', 'b', 'c']; 7} 8 9const one = generatorOne() 10const two = generatorTwo() 11 12console.log(one.next().value) 13console.log(two.next().value)
1function* generatorOne() { 2 yield ['a', 'b', 'c']; 3} 4 5function* generatorTwo() { 6 yield* ['a', 'b', 'c']; 7} 8 9const one = generatorOne() 10const two = generatorTwo() 11 12console.log(one.next().value) 13console.log(two.next().value)
本题为“单选题”
题库维护不易,您的支持就是我们最大的动力!