`

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');
}
});
}
}
});

});
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics