async function test() {
let arr = [1, 2, 3,4]
await Promise.all(arr.map(async item => {
const res = await fetch(item)
console.log(res)
}))
console.log('end')
}
async function test() {
let arr = [1, 2, 3,4]
await Promise.all(arr.map(async item => {
const res = await fetch(item)
console.log(res)
}))
console.log('end')
}