将多个数组对象合并成一个数组对象
array为多个数组对象
array=[{},{},{}],[{},{},{}],[{},{},{}]
arrayObject为合并后的数组对象
arrayObject=[{},{},{},{},{},{},{}]
let arrayObject=[]
array.map(function (value, index, array) {
console.log(value,index,array)
arrayObject = arrayObject.concat(value);
});
转载至https://blog.csdn.net/liruiqing520/article/details/88550
本文来自博客园,作者:1940,转载请注明原文链接:https://www.cnblogs.com/beiyi-Lin/p/16599334.html