How do I make a function wait until all jQuery Ajax requests are done inside another function? 我如何让一个函数等到全部jQuery Ajax请求都在另外一个函数中完成以后? ide
In short, I need to wait for all Ajax requests to be done before I execute the next. 简而言之,在执行下一个请求以前,我须要等待全部Ajax请求完成。 But how? 可是如何? 函数