为了账号安全,请及时绑定邮箱和手机立即绑定

treeview的数据格式问题

treeview的数据格式问题

慕斯卡6635957 2017-03-14 15:55:40
怎么用递归封装下面的数据格式 {    text: "Parent 1",    nodes: [      {        text: "Child 1",        nodes: [          {            text: "Grandchild 1"          },          {            text: "Grandchild 2"          }        ]      },      {        text: "Child 2",        nodes: [          {            text: "Grandchild 1"          },          {            text: "Grandchild 2"          }        ]      }    ]  },  {    text: "Parent 2"  },  {    text: "Parent 3"  },  {    text: "Parent 4"  },  {    text: "Parent 5"  }];
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 1324 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信