您的位置:首页 > 产品设计 > UI/UE

EasyUI-初始化异步树直接全部展开

2015-10-30 13:26 453 查看
$(function(){
$('#t_funinfo_tree').tree({
checkbox: true,
url:"<%=basePath %>/getT_FuninfoTree.do?pid='00000'",
onBeforeExpand:function(node)
{
$('#t_funinfo_tree').tree('options').url="<%=basePath %>/getT_FuninfoTree.do?pid="+node.id;
},
lines:true,
onLoadSuccess:function(node,data){
var t = $(this);
if(data){
$(data).each(function(index,d){
if(this.state == 'closed'){
t.tree('expandAll');
}
});
}
}

});
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: