ソースを参照

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();
 
 
 ...
 ...
 ```
 ```