我正在处理未知数量的 ajax 请求。请求可能会在 404 中失败。这会导致整个链失败。
有没有办法在一个延迟失败后继续?
var deferreds = [];
// fill deferreds with a number of ajax requests.
$.when.apply($, deferreds)
.done(function(){
// handle done
}).fail(function(){
// handle fail
// would like to fix/resolve the failed deferred and continue with the rest
});