Easyui 异步树直接所有展开
时间:2015-04-03 10:52:37
收藏:0
阅读:154
初始化异步树直接所有展开代码:
$(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'); } }); } } }); });
原文:http://www.cnblogs.com/bhlsheji/p/4389171.html
评论(0)