2023年6月22日发(作者:)
把LIST递归成树形结构1.创建类 public class Node { public bool leaf { get; set; } public int FolderID { get; set; } public string iconCls { get; set; } public bool editable { get; set; } public bool expanded { get; set; } public int ParentFolderID { get; set; } public string text { get; set; } public bool InheritPerm { get; set; } //public string CreateDate { get; set; } //public string CreateBy { get; set; } public Node[] children { get; set; } }2.从数据库获取数据转化成LIST3.递归构建树形结构 public static string GetTree(List
发布者:admin,转转请注明出处:http://www.yc00.com/web/1687385079a6106.html
评论列表(0条)