在我尝试访问内容时进行调试
this.get('this.content').objectAt(0).selected_group
true
但是当我尝试设置 selected_group 时,它给了我以下错误
this.get('this.content').objectAt(0).selected_group = false;
Error: assertion failed: Must use Ember.set() to access this property
当我尝试使用 setter 方法设置 selected_group 时再次出现以下错误
Ember.set(this.get('this.content').objectAt(0).selected_group, false)
TypeError: Object #<error> has no method 'indexOf'
this.get('content').objectAt(0) 如下所示
Object {id: "GRP1", divisions: Array[6]}
__ember1364353119575_meta: Meta
divisions: Array[6]
0: Object
budget: Object
current_month_proj: Object
division_name: "North Florida"
facilities: Array[8]
id: "DIV1"
last_year: Object
prev_month: Object
prior_three_months: Object
__proto__: Object
1: Object
2: Object
3: Object
4: Object
5: Object
length: 6
__proto__: Array[0]
get group_name: function () {
id: "GRP1"
set group_name: function () {
__proto__: Object
为 ArrayController 的内容(obj 数组)设置/添加属性的正确方法是什么?