Home > Q&A > body text
Click save to submit multiple ajaxes and exit after success
高洛峰2017-05-16 13:41:22
If it is jQuery, you can use $.when(), such as:
$.when()
$.when($.ajax(url1),$.ajax(url2)).done(function(){alert("ok!")});
伊谢尔伦2017-05-16 13:41:22
Promise