设置easyui的tree组件的小图标

直接在html中写<ul><li>(只能写在li标签中,以<span>的写法是无效的)html

<ul id="tt" class="easyui-tree">  
    <li data-options="iconCls:'icon-add'">  
        <span>Folder</span>  
<ul>

经过远程url加载tree数据,在JSON中写icon样式ui

[{   
    "id": 1,   
    "text": "Node 1", 
    "iconCls":"icon-save",   
    "state": "closed",   
    "children": [{ 
        "id": 11, 
        "text": "Node 11"  
    },{   
        "id": 12, 
  
        "text": "Node 12"  
    }]   
},{   
    "id": 2, 
    "text": "Node 2",   
    "state": "closed"  
}]
相关文章
相关标签/搜索