ztree的初级使用
公司有要求要树菜单,而且还要美观,我那么low比的一个人,又不会写,很绝望,于是就找到网上ztree的bootstrap版本。
凑合用吧,在深入我就不行了。下面直接放demo吧。
json
{
"id": 1,
"text": "总经办",
"state": "open",
"checked": false,
"attributes": null,
"iconCls": "fi-social-windows",
"pid": null,
"openMode": null
},
{
"id": 2,
"text": "采购",
"state": "open",
"checked": false,
"attributes": null,
"iconCls": "fi-social-snapchat",
"pid": 1,
"openMode": null
},
{
"id": 3,
"text": "出纳",
"state": "open",
"checked": false,
"attributes": null,
"iconCls": "fi-social-snapchat",
"pid": 1,
"openMode": null
},
{
"id": 4,
"text": "财务",
"state": "open",
"checked": false,
"attributes": null,
"iconCls": "fi-social-snapchat",
"pid": 1,
"openMode": null
},
{
"id": 6,
"text": "测试组",
"state": "open",
"checked": false,
"attributes": null,
"iconCls": &#