例如后返回的chilrenList但是现在我们需要将chilrenList变成chilren
function calleArr(data) {
data.forEach(i => {
if (i.childList) {
i.children = i.childList
if (i.childList.length !== 0) {
calleArr(i.childList)
} else {
return i.children = i.childList
}
}
})
}