改变数组的值
this.$set(this.children,1,666)
遍历改变数组中的对象
let that=this
this.children.forEach(function (value,i) {
that.$set(value,‘aa‘,true);
});
时间: 2025-01-07 13:00:13
改变数组的值
this.$set(this.children,1,666)
遍历改变数组中的对象
let that=this
this.children.forEach(function (value,i) {
that.$set(value,‘aa‘,true);
});