formatter: function (node) { var s = node.text; if (!node.attributes || !node.attributes.tooltip) return s; if (node.attributes.tooltip) { s = '<span title=\'' + node.attributes.tooltip + '\' class=\""easyui-tooltip\"">' + s + '</span>'; } return s; }
$('#tt').tree({ onLoadSuccess:function(){ $.parser.parse($(this)); }});
<ul class="easyui-tree" data-options=" data:data,animate:true,dnd:true, formatter:function(node){ return '<span title=\'' + node.text + '\' class=\'easyui-tooltip\'>' + node.text + '</span>'; }, onStartDrag:function(node){ $(this).find('.tooltip-f').tooltip('destroy'); }, onStopDrag:function(node){ $.parser.parse($(this)); }, onLoadSuccess:function(){ $.parser.parse($(this)); }"></ul>