📅  最后修改于: 2022-03-11 14:48:17.249000             🧑  作者: Mango
App.MyController = Ember.ArrayController.extend({
results: [],
init: function(){
_this = this;
App.MyModel.find({}).then(function(contents) {
obj1 = contents.objectAt(0);
obj1.get('data').hasMany.results.forEach(function(item){
_this.results.pushObject(item)
});
})
//rest of the code
}
});