メイト 私は、含まれているすべてのモデルの中で、バックボーン コレクションからより大きな属性を取得しようとしています。
例として:
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 フィールドです。
どうすればそれができますか?
ありがとう!