参考:反转Javascript中的对象数组 | 码农家园 (codenong.com)
使用 var y = [...reverArray].reverse();
var aa = {
name: "111",
prop: "eee"
}
var bb = {
name: "222",
prop: "ffff"
}
var cc = {
name: "333",
prop: "gggg"
}
var reverArray = new Array()
reverArray.push(aa)
reverArray.push(bb)
reverArray.push(cc)
console.log(reverArray)
console.log(reverArray.length)
var y = [...reverArray].reverse();
console.log(y)