$(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'); } } }); })
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/14512.html