var a1=[
{name:"a",value:11},
{name:"b",value:22},
{name:"c",value:33},
{name:"d",value:44},
]
var a2=[
{name:"a",value:111},
{name:"b",value:222},
{name:"c",value:333},
{name:"d",value:444},
]
var b = [
{name:"a",value:11},
{name:"b",value:22},
{name:"c",value:333},
{name:"d",value:44},
]我想实现把两个数组a1和a2进行合并,存放到数组b里面。可以进行合并么。师傅说,要有一个映射对照,有一个对照关系,才能合并。因为我是前端,对数据库的主键什么的不是很了解。
添加回答
举报
0/150
提交
取消