EasyUI ComboTree(树形下拉框) 简单实例

前台:

 

     <input id="cc">  
<script type="text/javascript">

$('#cc').combotree({ required: true }).combotree("tree").tree({ url: 'tree.ashx?id=0&state=closed', checkbox: false, onBeforeExpand: function (node, param) { $(this).tree('options').url = "tree.ashx?state=open&id=" + node.id; } });

 </script>

 

posted @ 2016-05-24 20:50  六芒兔工业物联  阅读(7256)  评论(0编辑  收藏  举报