如果数据有问题可以在评论区提出来
```javascript
data:[
{
"userId":"123456",
"names": [
{
"nums": [
"1",
"2",
"3"
],
"id": "111",
"name": "aa"
},
{
"nums": [
"4"
],
"id": "222",
"name": "bb",
},
{
"nums": [
"2"
],
"id": "333",
"name": "cc"
}
],
"date": "2023-02-13 17:51:12"
},
{
"userId":"1234567",
"names": [
{
"nums": [
"1",
"2",
"3"
],
"id": "111",
"name": "aa"
},
{
"nums": [
"4"
],
"id": "222",
"name": "bb",
},
{
"nums": [
"2"
],
"id": "333",
"name": "cc"
}
],
"date": "2023-02-13 17:51:12"
},
]
上面的数据把arr这个数组的每一项与id和name重新组成一个对象,
data:[
{
"userId":"123456",
"names": [
{
"num": "1",
"id": "111",
"name": "aa"
},
{
"num": "2",
"id": "111",
"name": "aa"
},
{
"num": "3",
"id": "111",
"name": "aa"
},
{
"num": "4",
"id": "222",
"name": "bb",
},
{
"num": "2",
"id": "333",
"name": "cc"
}
],
"date": "2023-02-13 17:22:15"
},
]
```