ComboTree 的json格式和引用
Posted 张好好
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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" }] }] }]
以上是关于ComboTree 的json格式和引用的主要内容,如果未能解决你的问题,请参考以下文章