作者:souroot
email:souroot@163.com
######################
首先:从下载到
解压后,得到如下文件(红色为文件夹):
--------------------------------------------------------------------------
api.html demo.v1.html requirements.txt xloaddemo.html
api.xloadtree2.html images tree.xml xloadtreedemo.html
css js tree2.xml
date.xml.pl nest.xml.pl tree3.xml
demo.html readme.html treeLARGE.xml
--------------------------------------------------------------------------
从demo.html,我们能学到:
定义根节点:
var t = new WebFXTree("Hello World");
定义子节点:
var ti0 = new WebFXTreeItem("Item 0");
把子节点加入根节点:
t.add(ti0);
加入子节点并且更新目录树:
t.add( new WebFXTreeItem( String(new Date), function () { this.remove(); } ) );
阅读(970) | 评论(0) | 转发(0) |