标签:console 实现 结合 code OLE return out ret mis
let arr = [1, 2, 3];
arr.reduce((pre, cur) => {
return pre.then(() => {
return new Promise(r => {
setTimeout(() => {
r(console.log(cur))
}, 1000);
})
})
}, Promise.resolve())
标签:console 实现 结合 code OLE return out ret mis
原文地址:https://www.cnblogs.com/samsara-yx/p/12625455.html