vue-tree
vue-tree copied to clipboard
getNodes获取的节点的parent属性有问题,无法获取父节点
[Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.invokeGetter (
加一个参数 true,会包含父节点。 getNodes(true)
加一个参数 true,会包含父节点。
getNodes(true)
不好意思,不太明白这种用法,我本意是想通过勾选子节点,获取该子节点的父节点信息。按照您的这种操作,获取的是整个树的节点数据
加一个参数 true,会包含父节点。
getNodes(true)
我明白了,多谢