combotree可编辑
$.fn.combotree.defaults.editable = true; //单独书写
editable: true, //在combotree中书写如:
$('#orgName').combotree({ editable: true,})
自定义模糊查询
$.extend($.fn.combotree.defaults.keyHandler,{
up:function(){
console.log('up');
},
down:function(){
console.log('down');
},
enter:function(){
console.log('enter');
},
query:function(q){
var reg=/^[\u4E00-\u9FA5]+$/;
if(reg.test(q)){
var t = $(this).combotree('tree');
var nodes = t.tree('getChildren');
for(var i=0; i<nodes.le