C#easyui combotree 设置节点折叠

树实体
 public class Combotree
    {
        public string id { get; set; }
        public string text { get; set; }
        public string state { get; set; }
        public List<Combotree> children { get; set; }
    }
只需要在初始化数据的时候给 state 设置为 closed


注意:不要在最后一级节点设置该字段为 closed
posted @ 2018-03-16 13:20  天使不哭  阅读(99)  评论(0编辑  收藏  举报