## Function(key, value, parentNode)zTreeObj.getNodesByParam

### Overview[ depends on jquery.ztree.core js ]

According to the node data attribute, search the nodes which exactly matches, and get the JSON objects collection of nodes.

Please use zTree object to executing the method.

### Function Parameter Descriptions

#### key String

The name of attribute which need to exactly match

#### value?

The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.

#### parentNode JSON

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.

#### Return Array(JSON)

The JSON data objects collection of the nodes which be searched.

If search none node, return [ ].

### Examples of function

#### 1. Search the nodes which their 'name' attribute is 'test'.

    var treeObj = $.fn.zTree.getZTreeObj("tree");
    var nodes = treeObj.getNodesByParam("name", "test", null);