methods:{
changeArr:function(){
this.userList[0].age=23;
this.userList[1].name="xxxx";
console.log(this.userList[1])
},
changeObj:function(){
this.userObj = Object.assign({},this.userObj,{
gender:"男",
weight:"150",
high:"140"
});
console.log(this);
},
removeObj:function(){
this.$delete(this.userObj,"name");
console.log(vm);
}
}复制代码
vue学习第一天
最新推荐文章于 2024-09-15 23:59:26 发布