先看效果图吧
主要就是鼠标移到easyui的tree上,显示该tree的一些备注信息,也就是我们所说的tooltip,具体代码如下
$("#westtree").tree({ url: 'xxx', method: 'post', animate: true, formatter:function(node){ if(node.title=='null' || node.title==''){ return '' + node.text + ''; }else{ return '' + node.text + ''; } }, onLoadSuccess:function(node, data){ $.parser.parse($(this),2); } },2);
这样,tree下就显示tooltip了。