vian 5 лет назад
Родитель
Сommit
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();
 
 ...
 ```