console.log("roleView =", this.roleView[0]);
console.log("roleView =", this.roleView);
this.roleView.forEach(function(node, B){
// console.log(node, B);
node.active = false;
});
console.log("roleView =", this.roleView[0]);
// this.roleView[0].active = true;
最后一行代码去掉,就会报undefine错误。
请问要怎么解决???

