您可以为此使用香草 javascript。
var c1 = [{n: "name 1", r: 152},{n: "name 2", r: 153}, {n: "name 6", r: 157}];
var c2 = [{n: "name 3", r: 154},{n: "name 4", r: 155}, {n: "name 5", r: 156}];
var lastPiece = c1.splice(2)//1 based position, rest of array is returned to last.
/*c1 now contains only r=152, r=153*/
//For is used for brevity use something else if you have things other then objects
for(var i in c2){c1.push(c2[i])}
c1.push(lastPiece[0])//Since this is an array
或者
var c1 = [{n: "name 1", r: 152},{n: "name 2", r: 153}, {n: "name 6", r: 157}];
var c2 = [{n: "name 3", r: 154},{n: "name 4", r: 155}, {n: "name 5", r: 156}];
var lastPiece = c1.splice(2)//1 based position, rest of array is returned to last.
/*c1 now contains only r=152, r=153*/
//For is used for brevity use something else if you have things other then objects
var temp = c1.concat(c2);
temp = temp.concat(lastPiece)
console.log(temp)
一些jsPerf可能很有趣。它压在拼接处。应用