【文件属性】:
文件名称:tree-manipulator:树机械手
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-13 20:38:27
JavaScript
树机械手
一个服务操作树对象。
安装
npm install tree-manipulator --save
代码示例
var tree = {
id : '1' ,
children : [ {
id : '2' ,
children : [
{
id : '3' ,
} ,
{
id : '4'
}
]
} , {
id : '5' ,
children : [ {
id : '6'
} , {
id : '7'
} ]
} ]
} ;
var tm = new TreeManipulator ( ) ;
tm . findNode ( '2' , tree ) ;
//
/*
Returns the entire node with identifier '2' and its path
【文件预览】:
tree-manipulator-master
----.gitignore(17B)
----package.json(613B)
----index.js(5KB)
----README.md(4KB)