async function fn(array){ await Promise.all(array.map(async (item) => { item.test = await testFn(item); return item })) } 将整个map函数用Promise包裹起来即可