According to the node data attribute, search the node which exactly matches, and get the JSON object of node.
Please use zTree object to executing the method.
The name of attribute which need to exactly match
The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.
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.
JSON data object of the node which be searched.
1. If search none node, return null.
2. If there are many nodes can be searched, return the first node.
var treeObj = $.fn.zTree.getZTreeObj("tree");
var node = treeObj.getNodeByParam("id", 1, null);