日期:2014-05-16  浏览次数:20983 次

easyui tree的问题
easyui中tree能不能鼠标悬浮在某一节点上,显示这个节点的text

------解决方案--------------------
给节点增加title属性就行了,tree中显示文本的节点样式为tree-title,增加load事件设置title,注意修改树的id选择器

onLoadSuccess: function () { $('#tt2 span.tree-title').attr('title', function () { return this.innerHTML; }); },