初始化异步树直接全部展开代码:
$(function(){ $('#tt').tree({ url:'<%=request.getContextPath()%>/treeInit', lines:true, onLoadSuccess:function(node,data){ var t = $(this); if(data){ $(data).each(function(index,d){ if(this.state == 'closed'){ t.tree('expandAll'); } }); } } }); });
Easyui 异步树直接全部展开,布布扣,bubuko.com
原文:http://blog.csdn.net/u012841509/article/details/30749913