选中根节点: //station_id为combotree控件id var station = $('#station_id').combotree('tree').tree('getRoots'); // 获取根节点 $("#station_id").combotree('setValue',station.target); // 通过setValue属性选中根节点 // 也可以直接设置节点的id值,传入字符 var status = $('#status_ID').combotree('tree').tree('getRoots'); $("#status_ID").combotree('setValue','-1');
转载于:https://www.cnblogs.com/lljiang/p/7728293.html
相关资源:JAVA上百实例源码以及开源项目