【发布时间】:2014-06-04 19:02:00
【问题描述】:
如何配置代码以在等待jQuery.Deferred 的承诺时运行?比如:
$.when(someAJAX).whatever(function() {
// run this while the AJAX is loading
}).done(function() {
// run this when it is done
});
我检查了the docs,但一无所获,但也许我遗漏了一些东西(deferred.progress() 在这里不起作用)。
【问题讨论】:
标签: javascript jquery ajax jquery-deferred