Yuan30

Results 2 comments of Yuan30

```javascript function handelFn(arr) { let obj = {} let tree = {} async function ff(i) { obj[arr[i].pId].child.push(arr[i]) } for (let i = 0; i < arr.length; i++) { arr[i].child =...

function handelFunc(srcData) { let childList = []; let result = []; for (let i = 0; i < srcData.length; i++) { let element = srcData[i]; element.child = childList[element.id] || (childList[element.id]...