根据id递归获取所有父元素id
递归获取所有父元素id
数据:
dataJson = [ { “ID”: 1, “CreatedAt”: “2021-02-25T10:40:25+08:00”, “UpdatedAt”: “2021-02-25T10:40:25+08:00”, “name”: “电子产品”, “icon”: “uploads/productCategory/bgi.png”, “parentId”: 0, “sort”: 0, “level”: 0, “status”: 1, “children”: [ { “ID”:
原创
2021-03-01 16:00:53 ·
708 阅读 ·
0 评论