标签:img 图片 lazy loading sse 源码 list com mamicode
以下是初始数据格式
data: [ {code:‘1‘, childrenList:[ {code:‘1-1‘, childrenList:[ {code:‘1-1-1‘, childrenList:[]}, {code:‘1-1-2‘, childrenList:[]} ]} ]}, {code:2, childrenList:[ {code:‘2-1‘, childrenList:[ {code:‘2-1-1‘, childrenList:[]} ]}, {code:‘2-2‘, childrenList:[ {code:‘2-2-1‘, childrenList:[]} ]} ]}, {code:‘3‘, childrenList:[]} ]
数据中的 childrenList 即为下一层的子节点
递归实现方法
以及源码请前往 https://www.passerma.com/article/66
标签:img 图片 lazy loading sse 源码 list com mamicode
原文地址:https://www.cnblogs.com/passerma/p/13281818.html