多个promise顺序执行

160 阅读1分钟
async function pro(list){
    let index = 0
    while (index < list.length) {
        await promiseFun(list[index])
        index ++
    }
}