greatpwx 发表于 2013-1-29 08:44:09

JqueryEasyUi Tree数据列表的书写

jsp或html代码中
<ul id="tree" style="margin-top: 5px;"></ul>
javascript中
tree = $('#tree').tree({
url : '',
animate : false,
onClick : function(node) {
},
onLoadSuccess : function(node, data) {
var t = $(this);
if (data) {
$(data).each(function(index, d) {
if (this.state == 'closed') {
t.tree('expandAll');
}
});
}
}
});

});
页: [1]
查看完整版本: JqueryEasyUi Tree数据列表的书写