问题遇到的现象和发生背景
将a转换为b,麻烦帮忙写的详细点,谢谢
a : [
{
users: [
{
userId: 1,
codeId":11112222,
},
{
userId: 2,
codeId":11112222,
}
],
startTime: 1,
endTime: 2
}
]
b : [
{
nodes:[
{
"codeId": "11112222",
"List": []
},
],
arr: [startTime, endTime],
},
]