According to the node data attribute, search the nodes which fuzzy matches, and get the JSON objects collection of nodes.
Please use zTree object to executing the method.
The name of attribute which need to fuzzy match
The value which need to fuzzy match.
The type of value can only be String
The search range, you can search node from a parent node's child nodes.
If this parameter is omitted, zTree will search node from all nodes.
The JSON data objects collection of the nodes which be searched.
If search none node, return [ ].
var treeObj = $.fn.zTree.getZTreeObj("tree");
var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);