作者:夏y儿 | 来源:互联网 | 2023-05-31 18:57
1[{"id":1, "children": [{"id":2, "children": [.......] }, {"id":3, "children": [] }] }].......代表还有子数
1
| [{"id":1, "children": [{"id":2, "children": [.......] }, {"id":3, "children": [] }] }] |
.......代表还有子数据,求问怎么遍历到html,是写指令封装dom,还是有更好的办法?