javascript - How to ensure that several ajax submissions are successful;
習慣沉默
習慣沉默 2017-05-16 13:39:22
0
2
484

Click save to submit multiple ajaxes and exit after success

習慣沉默
習慣沉默

reply all(2)
小葫芦

If it is jQuery, you can use $.when(), such as:

$.when($.ajax(url1),$.ajax(url2)).done(function(){alert("ok!")});
伊谢尔伦

Promise

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template