Преглед на файлове

docs(tree): 更新README

vian преди 5 години
родител
ревизия
3a24ff7dd2
променени са 1 файла, в които са добавени 4 реда и са изтрити 5 реда
  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();
 
 
 ...
 ...
 ```
 ```