阅读背景:

如何在循环中生成多个ajax请求按顺序返回值?

来源:互联网 

I have to make a series of Ajax requests on a loop. Around 100 of them. And each request returns a JSONP variable. I extract data from the JSON and keep appending the value into a div. The problem is that I want the div to be appended with data in the order of function call. i.e sequentially. Now i get a different order everytime i refresh the page depending on the order in which the request completes. Here's my code. I have to make a series of Ajax requests on a l




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: