Wait until all jQuery Ajax requests are done?

后端 未结 21 1799
离开以前
离开以前 2020-11-21 04:39

How do I make a function wait until all jQuery Ajax requests are done inside another function?

In short, I need to wait for all Ajax requests to be done before I exe

21条回答
  •  长情又很酷
    2020-11-21 05:29

    $.when doesn't work for me, callback(x) instead of return x worked as described here: https://stackoverflow.com/a/13455253/10357604

提交回复
热议问题