Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/445.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我可以选择一个节点,但不能在jsTree中选中/取消选中它吗?_Javascript_Jquery_Jstree - Fatal编程技术网

Javascript 我可以选择一个节点,但不能在jsTree中选中/取消选中它吗?

Javascript 我可以选择一个节点,但不能在jsTree中选中/取消选中它吗?,javascript,jquery,jstree,Javascript,Jquery,Jstree,我想通过点击标题来选择jsTree中的节点。节点不应更改其选中状态 我读过,但还没有发现。 有可能吗?是的,有可能。创建树时,请使用tie_selectioncheckbox config选项: $('#tree').jstree({ checkbox : { tie_selection : false, ... 我建议您阅读jstree.com上API文档中的其他复选框选项,因为您可能也想对它们进行调整(例如whole\u node:false) 致以最良好的祝愿, 伊

我想通过点击标题来选择jsTree中的节点。节点不应更改其选中状态

我读过,但还没有发现。


有可能吗?

是的,有可能。创建树时,请使用
tie_selection
checkbox config选项:

$('#tree').jstree({
  checkbox : {
    tie_selection : false,
    ...
我建议您阅读jstree.com上API文档中的其他复选框选项,因为您可能也想对它们进行调整(例如
whole\u node:false

致以最良好的祝愿, 伊万