摘要: data =[{ "name": "省", "children":[ { "name": "市区", "children": [ { "name":"县", "children":[] } ] } ] }] //递归删除县层为空的children数组 function exec(array) { array.forEach(item => { if (item.children.length 0) 阅读全文
posted @ 2019-09-16 21:48 ExpectoPatronum—S 阅读(647) 评论(0) 推荐(0)