EasyUI-初始化异步树直接全部展开
$(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');
}
});
}
}
});
});
人在山中,才知道,白云也可以抓上一把,苍翠竟有清甜的味道。
人在山中,才知道,高度永远是一个变量,而快乐则是附于中跋涉过程的函数。
人在山中,才知道,庄严是望远时的一种心境,高处才能指点江山。