Why is the order of index after fetch out of order?

clipboard.png

clipboard.png

clipboard.png

Jun.28,2022

Asynchronous requests are all like this. You have to consider network fluctuations, server processing time and so on. A request may not be sent and received first. The return order of
is not necessarily normal. I thought you sent it in a different order.


to be exact, the order of console calls is out of order, because the response time of different interfaces is different, and the time of calling your replys = > {console.log (index)} method is different

.
Menu