根据父子生成数组树结构
pId的的list数据转换为children格式的树形结构
function transData(a, idStr, pidStr, chindrenStr){
var r = [], hash = {}, id = idStr, pid = pidStr, children = chindrenStr, i = 0, j = 0, len = a.length;
for(; i < len; i++){
原创
2021-02-24 15:38:11 ·
155 阅读 ·
0 评论