遞歸算法將數據轉換爲樹形結構

public class TT{ /* * 初始化數據 * [{"path":"0001","id":1,"text":"北京"}, * {"path":"00010001","id":2,"text":"朝陽","parentId":1}, * {"path":"00010002","id":3,"text":"海淀","parentId":1},
相關文章
相關標籤/搜索