1.定义数组:var dialogtable = res.data 2.数组循环取值:this.dialogtable.forEach((item)=>{ console.log(item) item.name=this.name })