extjs3.1 tree 代码 ,这是根据官方网站 two_tree.js 方式修改的。自己生成了动态生成树。

其它动态生成树有很多种方式:

1:官方的 DwrTree 调用 后台类,extjs 会自动封装好数据给前吧。

 

tree = new Ext.tree.TreePanel({   
    loader: new Ext.ux.DWRTreeLoader({dwrMethod: Param.getTree}),   
    autoScroll:true,   
    root:new Ext.tree.AsyncTreeNode({text:'根结点,id:'0'})   
});  

 

 

2:自己封装数据,生成特定格式的文本。

 

new Ext.tree.TreeLoader({
                    dataUrl:'../jsp/get-nodes.jsp',
                    baseParams: {lib:'two'}
                }),

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

效果图

 

extjs two tree 动态双树代码 效果图

相关文章:

  • 2022-01-01
  • 2021-12-02
  • 2021-11-22
  • 2021-12-15
  • 2021-11-12
  • 2021-10-04
  • 2021-04-24
  • 2021-10-19
猜你喜欢
  • 2021-08-08
  • 2021-09-21
  • 2018-08-10
  • 2021-11-26
  • 2021-09-20
  • 2021-12-25
  • 2021-09-04
相关资源
相似解决方案