参考示例:增加、删除、修改节点
var tree = mini.get("tree1"); var node = tree.getSelectedNode(); var newNode = {}; tree.addNode(newNode, "before", node);
var node = tree.getSelectedNode();
tree.removeNode(node);
var node = tree.getSelectedNode();
tree.beginEdit(node);
tree.moveNode(node, targetNode, "before");