dhtmlxTree(DHTML的扩展树)是一个功能丰富的JavaScript树形菜单 ,允许你轻松地创建有吸引力,快速装载能力下降层次树与跨浏览器兼容性,Ajax支持,在线节点编辑,和拖放的N -。 Special techniques implemented into this JavaScript tree control make it possible to load even big trees fast and effectively .树控件的JavaScript特别的技术落实到这使人们有可能甚至大树负荷快速有效 。
Rich client-side API provides complete control over the TreeView appearance and behaviour. Since version 2.5, in addition to the existing functional API, dhtmlxTree also provides object constructor that allows developers to define object properties within a single command. 丰富的客户端API和行为提供了完全控制TreeView的外观。自从2.5版本的API,除了现有的功能,还提供了对象的构造dhtmlxTree,允许开发人员定义一个命令对象的属性在。
Advanced drag-and-drop allows you to drag items not just within one tree, but between different ones (even if the trees are located in different frames or iframes). You can try this functionality right now:先进的拖曳及放下让你拖不仅在树项目之一,但不同的(即使是iframe的树木分布在不同的框架或)现在。你可以试试这个功能的权利:
使用很简单,先把代码中的dhtmlxTree下的codebase文件夹拷贝到你的项目中,这里只JS和CSS等资源
首先在页面添加引用
在添加一个DIV来渲染
这个控件自带了8个皮肤,皮肤地址dhtmlxTree/codebase/imgs,皮肤名对应文件夹名,自己可以设置
setSkin('csh_yellowbooks');
在JS代码中大家可以看到数的内容是有XML来的
格式如下
很简单的操作,以上就可以完成一个TREE了