在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"
        }]
    }]
}]

ComboTree 的json格式和引用

 

相关文章:

  • 2021-12-29
  • 2021-11-08
  • 2021-07-29
  • 2021-07-09
  • 2022-12-23
  • 2022-02-06
  • 2021-06-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-11-18
  • 2021-12-29
相关资源
相似解决方案