如何把树状列表中的proOrCrowdId,proOrCrowdName俩字段名分别转换为id,name...HELP!!
function rename(list) { list.forEach(item => { item.id = item.proOrCrowdId; item.name = item.proOrCrowdName; if(item.childCrowdDto) rename( item.childCrowdDto ) }); return list; }
1.4m articles
1.4m replys
5 comments
57.0k users