easyui tree只有一个子菜单时不显示
从后台取数据,我就直接给传回来的JSON格式吧。[{"id":1,"text":"主菜单1","state":"open","children":{"id":14,"te...
从后台取数据,我就直接给传回来的JSON格式吧。
[{"id":1,"text":"主菜单1","state":"open","children":{"id":14,"text":"子1233","state":"open","iconCls":"icon-ok"},"iconCls":"icon-file"}]
只有一个children节点,然而不显示
我添加一个子节点,然后两个都显示,为什么呢
[{"id":1,"text":"主菜单1","state":"open","children":[{"id":14,"text":"子1233","state":"open","iconCls":"icon-ok"},{"id":22,"text":"ces","state":"open","iconCls":"icon-ok"}],"iconCls":"icon-file"}]
完全不懂了,没改JSON数据,是完完全全后台来的,只有一个子节点就不显示 展开
[{"id":1,"text":"主菜单1","state":"open","children":{"id":14,"text":"子1233","state":"open","iconCls":"icon-ok"},"iconCls":"icon-file"}]
只有一个children节点,然而不显示
我添加一个子节点,然后两个都显示,为什么呢
[{"id":1,"text":"主菜单1","state":"open","children":[{"id":14,"text":"子1233","state":"open","iconCls":"icon-ok"},{"id":22,"text":"ces","state":"open","iconCls":"icon-ok"}],"iconCls":"icon-file"}]
完全不懂了,没改JSON数据,是完完全全后台来的,只有一个子节点就不显示 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询