对json data 的基本操作

150 阅读1分钟

var list = {id:5,title:新生5,age:9}

this.arr.push(list)//push 在数组的尾部添加 this.arr.unshift(list)//unshift 首部添加