jQuery Deferred not calling the resolve/done callbacks in order
问题 Code example: http://jsfiddle.net/MhEPw/1/ I have two jQuery Deferred objects. I want to have more than one 'async' request happening - and after they all run I want the callbacks (the .done functions) to be run in order they were specified in. Unfortunately they don't run in order. Maybe I am looking for some functionality here that Deferred doesn't provide? 回答1: What you need to do is link all of your request with one master deferred object and register all of your callbacks on its promise.