<script>
let arr1 = ["2018-10-16", "2018-10-17"];
let arr2 = [{
最总完成订单: "37.54",
数量: 60.53,
所有订单: 223118,
销售额: 83756
},
{
最总完成订单: "42.47",
数量: 59.82,
所有订单: 210315,
销售额: 89329
}
];
let res = {};
arr1.forEach((item, index) => {
res[item] = arr2[index];
});
console.log(res);
</script>
网友评论