例如: 0bj: {name1:'aaa' ,value1: '1111',name2:'aaa' ,value2: '1111',name3:'aaa' ,value3: '1111',name4:'aaa' ,value4: '1111'...} 得到 list:[{name: 'aaa',value: '1111'},{name: 'aaa',value: '1111'},{name: 'aaa',value: '1111'},{name: 'aaa',value: '1111'}] 具体代码如下: let arr = []; let index =0; for (let key in data.field){ let obj = {}; if (key.toString().indexOf('name')>=0){ index +=1; obj.name = data.field[key] } if (key.toString().indexOf('value')>=0){ index +=1; obj.value = data.field[key] } if (index%2 === 0){ arr.push(obj); } }