大家好,我是Ext的新手,遇到一个解决不了的问题,希望有大侠帮助
从后台读进的数据像是这样:
{menuName:'funcitionOne', menuCode:'001', parentCode:'0' }
{menuName:'subFunctionOne', menuCode:'001001, parentCode:'001' }
{menuName:'sub-subFunctionOne', menuCode:'001001001', parentCode:'001001'}
{menuName:'sub-subFunctionTwo', menuCode:'001001002 'parentCode:'001001'}
然后根据functionCode和parentCode生成依赖关系的菜单
然后能生成的菜单就像这样:
[img]/upload/attachment/139393/cdbf5c25-b5f9-3208-9ea2-bb8510a606fe.jpg[/img]