Click save to submit multiple ajaxes and exit after success
If it is jQuery, you can use $.when(), such as:
$.when()
$.when($.ajax(url1),$.ajax(url2)).done(function(){alert("ok!")});
Promise
If it is jQuery, you can use
$.when()
, such as:Promise