easyui treegrid中的json数据如何拼装额?求助啊最好能贴上代码

求大神指教。。。... 求大神指教。。。 展开
 我来答
  • 你的回答被采纳后将获得:
  • 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏15(财富值+成长值)
匿名用户
2015-07-16
展开全部
后台拼rows
{"total":20,"rows":[
{"id":1,"code":"code1","name":"name1","addr":"address1"},
{"id":11,"code":"code11","name":"name11","addr":"address11","_parentId":1},
{"id":12,"code":"code12","name":"name12","addr":"address12","_parentId":1},
{"id":2,"code":"code2","name":"name2","addr":"address2","state":"closed"},
{"id":21,"code":"code21","name":"name21","addr":"address21","_parentId":2},
{"id":22,"code":"code22","name":"name22","addr":"address22","_parentId":2},
{"id":3,"code":"code3","name":"name3","addr":"address3","state":"closed"},
{"id":31,"code":"code31","name":"name31","addr":"address31","_parentId":3},
{"id":32,"code":"code32","name":"name32","addr":"address32","_parentId":3},
{"id":4,"code":"code4","name":"name4","addr":"address4","state":"closed"},
{"id":41,"code":"code41","name":"name41","addr":"address41","_parentId":4},
{"id":42,"code":"code42","name":"name42","addr":"address42","_parentId":4}

]}
添加 _parentID即可
本回答被提问者和网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式