jstree获取半选中节点的方法

时间:2023-03-09 03:06:18
jstree获取半选中节点的方法
$('#jstree1').jstree().get_undetermined();
返回一个数组,getPara();方法无法获取数组

get_undetermined ([full]) 

get an array of all nodes whose state is "undetermined"

  • full:

    boolean if set to `true` the returned array will consist of the full node objects, otherwise - only IDs will be returned

  • Returns

    Array