ComboTree 的json格式和引用

在easyui内,用 <select>实现combotree。

<td ><select class="easyui-combotree" url="json/city_data.json" name="newprof" style="width:156px;"/></td>

JSON格式:

[{
    "id":"HQ",
    "text":"HQ",
    "checked":"disabled",
    "children":[{
        "id":"R&D",
        "text":"R&D",
        "checked":"disabled",
        "children":[{
            "id":"JAVA_R&D",
            "text":"JAVA_R&D"
        },{
            "id":".net_R&D",
            "text":".net_R&D"
        },{
            "id":"PHP_R&D",
            "text":"PHP_R&D"
        }]
    },{
        "id":"PO",
        "text":"PO",
        "state":"closed",
        "children":[{
            "id":"JAVA_PO",
            "text":"JAVA_PO"
        },{
            "id":".NET_PO",
            "text":".NET_PO"
        },{
            "id":"PHP_PO",
            "text":"PHP_PO"
        }]
    }]
}]

 

posted @ 2016-12-14 23:02  张好好  阅读(3034)  评论(0编辑  收藏  举报