将树结构扁平化为数组
Flatten a tree structure into an array.
节点类型 / node type
输入的树数组 / input tree array
Optional
子节点字段名 / children field name
扁平化后的数组 / flattened array
// tree2Array(tree) Copy
// tree2Array(tree)
将树结构扁平化为数组
Flatten a tree structure into an array.