created: function() { var id = ['001','002','003']; var name = ['张三','李四','王五']; this.mergeArray(id,name); }, methods: { // 合并数组对象 mergeArray(id,name){ var userList = []; for(let i=0; i < id.length; i++){ // 构建对象 let obj = {}; obj.id = id[i]; obj.name = name[i]; // 对象推进数组 userList.push(obj); } } }