摘要: 需要依赖 immutable,用于group by分组 buildTree 为入口方法,注意返回的是Immutable.List对象,使用需要调用.toJS()方法转为普通对象 其中 creatNode方法为构建节点对象,可根据自己需求动态修改该方法 import Immutable, { List 阅读全文
posted @ 2023-01-16 15:58 雪月风殇 阅读(287) 评论(0) 推荐(0)