My getJSON calls are returning results randomly rather than the order they are called

后端 未结 4 1397
刺人心
刺人心 2021-01-24 19:23

I need to make multiple getJSON requests to write data to an HTML file. This example shows 3 requests yet I will add up to 6 requests (maybe more) in the same forma

4条回答
  •  情书的邮戳
    2021-01-24 19:36

    Could it be that this function does work asynchronously ? So it fire all three of them and the finished function's callback (whoever it will be) starts appending :o ?

    You could let these functions work in sync-mode

提交回复
热议问题