为啥可以filtered.done的问题
var filterResolve = function() {
var defer = $.Deferred(),
filtered = defer.then(function(value) {
return value * 2;
});
defer.resolve(5);
filtered.done(function(value) {
show("Value is ( 2*5 = ) 10: " + value);
});
};
filtered=defer.then(function(value) {
return value * 2;
});之后filtered不应该是defer.resolve(5)给defer.then运行之后的数字10吗 为什么filtered为啥会有done方法 他是defered对象吗