如何把树状列表中的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; }
2.1m questions
2.1m answers
60 comments
57.0k users