Tommy Cxxx says to Happy Web Developer
即是如果 .then callback 就會是這樣? var a1 = $.ajax({ url: '/path/to/file', dataType: 'json' }), a2 = a1.then(function(data) { return $.ajax({ url: '/path/to/another/file', dataType: 'json', data: data.sessionID }); }, function(err) { console.log(err); }); a2.done(function(data) { console.log(data); });