求大神帮个忙.... 谢谢谢谢
net吧
全部回复
仅看楼主
level 1
cnsimplo 楼主
想转个树型的json,主要是用来做权限的,学艺不精,一直没弄出来。。求指点!
这个是数据库结构...
想转成这种
[{ "title": "权限管理", "icon": "fa-cogs", "spread": false, "children": [{ "title": "用户管理", "icon": "fa-table", "href": "xx.html" },{ "title": "角色管理", "icon": "fa-table", "href": "xx.html" },{ "title": "邮件管理", "icon": "fa-table", "href": "xx.html" },{ "title": "操作日志", "icon": "fa-table", "href": "xx.html" }] }];
2017年03月17日 02点03分 1
level 8
2017年03月18日 03点03分 2
手写的,应该就这个思路。
2017年03月18日 03点03分
@需要人捶💢 谢谢,一直忘记看回复了。自己弄出来....但,还是非常感谢你!
2017年03月22日 02点03分
level 1
我去年也做了这个。。。
2017年03月20日 03点03分 3
1