generator改写next_id():
next_id()
for (id = 1; ; id++) { yield id; }
for (let id = 1; ; id++) { yield id; }
这里为啥要两个;;
中间循环次数参数是空值,一直循环
Sign in to make a reply
xian_wen
generator改写
next_id()
: