$(function() {
$('#tt').combotree({
url: 'getTree.do',
onBeforeSelect: function(node) {
if (!$(this).tree('isLeaf', node.target)) {
return false;
}
},
onClick: function(node) {
if (!$(this).tree('isLeaf', node.target)) {
$('#tt').combo('showPanel');
}
}
});
})
转载于:https://www.cnblogs.com/huangf714/p/5898920.html