选中根节点:
//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');

posted on 2017-10-25 13:05  茄子蹲  阅读(7715)  评论(0编辑  收藏  举报