【发布时间】:2013-07-03 08:01:28
【问题描述】:
配合 我正在尝试从其包含的所有模型中的主干集合中获取更大的属性。
举个例子:
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 字段。
我该怎么做?
谢谢!
【问题讨论】: