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

急急急急 求大神帮忙关于jquey easy ui tree
<script type="text/javascript">
$(function(){
$('#tt').tree({
checkbox: true,
url: 'Default2.aspx',


onLoadError:function(arguments)
{
debugger;
alert(arguments);

}
});
});
</script>
然后进debug
跳进
jquery easyui.min.js

var _d0=$("<div class=\"tree-node\"></div>").appendTo(li);
_d0.attr("node-id",_cf.id);
$.data(_d0[0],"tree-node",{id:_cf.id,text:_cf.text,iconCls:_cf.iconCls,attributes:_cf.attributes});
$("<span class=\"tree-title\"></span>").html(_cf.text).appendTo(_d0);
Microsoft JScript 运行时错误: 对象不支持此属性或方法
红色的这行报错

------解决方案--------------------
$("<span class=\"tree-title\"></span>").html(_cf.text).appendTo(_d0);
把这句换成:
$("<span class='tree-title'>" + _cf.text + "</span>").appendTo(_d0);
试试吧。