Jquery ajax call within an each loop

前端 未结 4 1488
日久生厌
日久生厌 2020-12-18 23:03

I\'m having a problem when using the jquery .each() and .ajax() functions together. I\'m using .each() to loop through 5 elements and am performing the .ajax() call for each

4条回答
  •  情深已故
    2020-12-18 23:55

    You can use the jquery deffered and promise function to check the async call is success or not. http://joseoncode.com/2011/09/26/a-walkthrough-jquery-deferred-and-promise/

提交回复
热议问题