2
匹配 我试图从其所有包含的模型中获得骨干集合中较大的属性。骨干 - 来自集合的更大模型属性
举个例子:
App.Models.Example = Backbone.Model.extend({
defaults: {
total: 0,
created_at: '0000-00-00',
updated_at: '0000-00-00'
}
});
App.Collections.Examples = Backbone.Collection.extend({
model: App.Models.Example,
url: 'examples'
});
var examples = new App.Collections.Examples();
examples.sync();
我需要得到的,是更大的created_at领域。
我该怎么做?
谢谢!