vue学习第一天

109 阅读1分钟
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);
	}
}