码迷,mamicode.com
首页 > 其他好文 > 详细

easyui tree末端子菜单显示:

时间:2015-02-15 16:25:51      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:

easyui树形显示注意事项:

[{"id":"01","text":"商户管理","state":"closed","checked":true,"children":[{"id":"0100","text":"商户管理","state":"closed","checked":true},{"id":"0107","text":"商户审核","state":"closed","checked":true},{"id":"0106","text":"商户银行配置","state":"closed","checked":true},{"id":"0104","text":"商户查询","state":"closed","checked":true},{"id":"0108","text":"商户费率管理","state":"closed","checked":true}]},
{"id":"02","text":"银行管理","state":"closed","checked":true,"children":[{"id":"0200","text":"查看银行","state":"closed","checked":true}]}。。。。。]

这是我后台返回的json串,本以为符合easyui tree是json规范,可是显示的效果却是:

技术分享

后来发现原来是json里面children多加了"state":"closed"导致,去掉后就正常了

技术分享

 

easyui tree末端子菜单显示:

标签:

原文地址:http://www.cnblogs.com/zzujava0430/p/4293030.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!