Easyui的一些知识点记录

1、Easyui-Combotree获取数据后,如何实现选中根节点

<select id="fzdz" name="fzdz" class="easyui-combotree" editable='false'>

根据select标签的id,进行事件绑定

$('#fzdz').combotree({
     url : 'url',
     onLoadSuccess:function(node,data){ 
      	$('#fzdz').combotree('setValue', { id: data[0].id, text: data[0].text });
      }
});

猜你喜欢

转载自blog.csdn.net/weixin_40106067/article/details/82529984