js 将一维对象数组分割重组为每X组为一项的二维数组 var Arry = [ {id: '1', name: 'A'}, {id: '2', name: 'B'}, {id: '3', name: 'C'}, {id: '4', name: 'D'} ] var arr= []; for(var i = 0; i < Arry.length; i += 3) { arr.push(Arry.slice(i, i + 3)); } console.log(arr)