提交 9d575429 编写于 作者: Z ztree

fixed issue: API's text

上级 bbb91056
......@@ -26,7 +26,7 @@ treeObj.cancelSelectedNode();
</code></pre>
<h4>2. 取消当前第一个被选中节点的选中状态</h4>
<pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
var nodes = treeObj.getSelectedNode();
var nodes = treeObj.getSelectedNodes();
if (nodes.length>0) {
treeObj.cancelSelectedNode(nodes[0]);
}
......
......@@ -26,7 +26,7 @@ treeObj.cancelSelectedNode();
</code></pre>
<h4>2. Cancel the first node of the selected nodes</h4>
<pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
var nodes = treeObj.getSelectedNode();
var nodes = treeObj.getSelectedNodes();
if (nodes.length>0) {
treeObj.cancelSelectedNode(nodes[0]);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册