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');
}
});
}
}
});
});
$('#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');
}
});
}
}
});
});
相关文章推荐
- EasyUI系列之布局Layout
- FastQ思考系列之EasyUI页面按钮权限控制
- EasyUI系列之扩展easyui datagrid的两个方法.动态添加和删除toolbar的项
- EasyUi Datagrid的基础使用
- EasyUI系统之Tree
- 关于ios中的点赞控件效果的实现--UIControl
- 【Quick 3.3】资源脚本加密及热更新(二)资源加密
- UESTC 1226 Huatuo's Medicine
- UESTC 1221 Ancient Go
- UICollectionViewController
- UESTC 1218 Pick The Sticks
- Coding Guidelines for Cocoa
- Optimizing string function in UE4
- UESTC 1215 Secrete Master Plan
- R语言读取txt文件中的内容
- How to add multiple filters to UIImage GPUImage?
- mysql-普通查询(General Query)慢查询(Slow Query)相关日志配置
- Error:Could not read cache value from '/Users/wangjin/.gradle/daemon/2.2.1/registry.bin'.
- MessageQueue, Looper, Thread, Handler, Message, Messenger
- 如何正确选择uiimage之间不同的过滤器(gpuimage)