如:
tree.json
[{ id:1, text:folder1, iconcls:icon-save, children:[{ text:file1, checked:true },{ text:books, state:open, attributes:{ url:/demo/book/abc, price:100 }, children:[{ text:photoshop, checked:true, state:closed },{ id: 8, text:sub bookds, state:open }] }] }] $('#box').tree({ url :tree.json, cascadecheck : false, onlyleafcheck : true, lines : true, formatter : function (node) { return '[' + node.text + ']'; } });
tree组件无限循环截图
解决方法:把末节点state状态设为open可正常显示
相关推荐:
实例讲解css3实现无限循环的无缝滚动
php实现无限循环获取mysql中数据的方法示例
php 无限循环获取数据(或消息)信息
以上就是easyui tree树组件无限循环实例分析的详细内容。
