fetch("http://10.3.134.173/jsonp-test/data/dish_getbypage.php?start=1",
).then((response)=>
response.json()
).then((res)=>{
console.log(res[0].name);
});
fetch("http://10.3.134.173/jsonp-test/data/dish_getbypage.php?start=2",
).then((response)=>
response.json()
).then((res)=>{
console.log(res[0].name);
})
initiate a request at the same time, for example, one waits for one second, the other waits for two seconds to return, and then the result is returned, and then the subsequent operations are performed. How to do this, and how to write
in promise.all