ztree 怎么更改节点文字的颜色呢?
ztree吧
全部回复
仅看楼主
level 3
QQ799184056 楼主
{[{"id":4,"name":"前台",font:{'color':'red'},"url":"","pid":2,"layer":10000,"drag":false,"isParent":true,"target":"right","iconSkin":"pIcon01","nodeepth":0}]}
我是后台拼装的JSON数组,可是没有作用!!求解~~~~树哥
2014年01月22日 01点01分 1
level 11
传给 zTree 的时候只要里面那层数组即可。如果只有一个节点数据,那么就只要数组里面哪个 json 对象即可。 不要在数组外面再套上 {}
2014年02月10日 13点02分 2
[{name:"SEMS/节能管理",font:{'color':'red'}}] 拼装成这样的,字体颜色还是白色的,没有改变?
2014年02月11日 06点02分
level 11
更改颜色,可以参考:http://www.ztree.me/v3/demo.php#_110
2014年02月10日 14点02分 3
谢谢树哥,我解决了
2014年02月11日 06点02分
1