遍历二维数组,将子项解析成字符串,进行索引删除,再将删除后的子项转换成对象
this.data.forEach((item,index)=>{
this.data[index]=JSON.stringify(item)
})
var index=(this.data.indexOf(JSON.stringify(arry)))
this.data.splice(index,1)
this.data.forEach((item,index)=>{
this.data[index]=JSON.parse(item)
})
(房屋管理)