$(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‘); } } }); })
作者:itmyhome
原文:http://blog.csdn.net/itmyhome1990/article/details/46038395