以 model 值关联拼接数据
var aa = [{"sales": "33", "brand": "4", "model": "ITsdwd", "quotetime": "2022/11/10 1:43:15 上午"}]
var bb = [ {
"supplier": "aaa",
"brand": "10",
"model": "AAA11",
"itemencap": "",
"costps": "",
"purchaser": "152",
"stocksl": ""
}, {
"supplier": "测试供应商",
"brand": "4",
"model": "ITsdwd",
"itemencap": "",
"costps": "",
"purchaser": "33",
"stocksl": "1000"
}]
得到以下内容
[
{
"supplier": "aaa",
"brand": "10",
"model": "AAA11",
"itemencap": "",
"costps": "",
"purchaser": "152",
"stocksl": ""
},
{
"supplier": "测试供应商",
"brand": "4",
"model": "ITsdwd",
"itemencap": "",
"costps": "",
"purchaser": "33",
"stocksl": "1000",
"sales": "33",
"quotetime": "2022/11/10 1:43:15 上午"
}
]
这样?