摘要:
// 利用reduce同步处理promise const p = function(num) { return new Promise((resolve, reject) => { setTimeout(() => { resolve(num) }, 2000) }) }; // list: [1, 阅读全文
posted @ 2019-11-20 15:12
长虫山小木屋
阅读(456)
评论(0)
推荐(0)
|
摘要:
// 利用reduce同步处理promise const p = function(num) { return new Promise((resolve, reject) => { setTimeout(() => { resolve(num) }, 2000) }) }; // list: [1, 阅读全文
posted @ 2019-11-20 15:12
长虫山小木屋
阅读(456)
评论(0)
推荐(0)
|