阅读背景:

EasyUI的tree展开所有的节点或者根据特殊的条件控制展示指定的节点

来源:互联网 
展示tree下的所有节点
$(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'); } }); } } }); })$(function(){ $('#t_funinfo_tree')



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: