Subsequent methods are executed after multiple Ajax requests have been successful

$.when() = $.when(); $.when() = $.when();

$.when( 
    $.ajax(),
    $.ajax(),
    $.ajax() 
).done(function( a1, a2 ,a3) {// The done function is triggered only when all three ajax callbacks passed in internally are successful
                                //a1 is the first data returned asynchronously
                                //a2 is the second asynchronous return
                              //a3 is the third asynchronous return
 
    }
).fail( function(){When an Ajax execution fails, fail is triggered}); This method is in jQuery1. 5Begin to be introducedCopy the code