Explorar el Código

docs(tree): 更新README

vian hace 5 años
padre
commit
3a24ff7dd2
Se han modificado 1 ficheros con 4 adiciones y 5 borrados
  1. 4 5
      tree/README.md

+ 4 - 5
tree/README.md

@@ -37,16 +37,15 @@ tree.prepareInsert(rawData);
 ```
 ```
 
 
 ### 节点方法
 ### 节点方法
-
-节点可用的方法均挂载在节点的**ctx**对象中。
+**ctx循环引用导致handsontable栈溢出**,因此节点方法及属性不再直接挂载到**ctx对象中**,而是通过**getCtx()获取节点上下文对象**。
 
 
 ```
 ```
 
 
-node.ctx.row();
+node.getCtx().row();
 
 
-node.ctx.parent();
+node.getCtx().parent();
 
 
-node.ctx.children();
+node.getCtx().children();
 
 
 ...
 ...
 ```
 ```