## Array(String) / JSON / Function(treeId, treeNode)setting.async.otherParam

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

The query parameters of the Ajax request. (key - value) It is valid when [setting.async.enable = true]

Default: [ ]

### Array(String) Format

Can be an empty array. e.g. [ ]. The array should contain key value pairs, e.g. [key, value]. (Either or [key] or [key, value, key] is wrong!!)

### JSON Format

Use JSON hash data to set the key-value pairs. e.g. { key1:value1, key2:value2 }

### Function Parameter Descriptions

#### treeId String

zTree unique identifier: treeId.

#### treeNode JSON

Parent node's JSON data object

When asynchronously loading the root, the treeNode = null

#### Return Array(String) || JSON

Return value is same as 'Array(String) || JSON Format'

### Examples of setting

#### 1. Using Array(String) Format

    var setting = {
    	async: {
    		enable: true,
    		url: "http://host/getNode.php",
    		otherParam: ["id", "1", "name", "test"]
    	}
    };
    when zTree sends the ajax request, the query string will be like this: id=1&name=test

#### 2. Using JSON data Format

    var setting = {
    	async: {
    		enable: true,
    		url: "http://host/getNode.php",
    		otherParam: { "id":"1", "name":"test"}
    	}
    };
    when zTree sends the ajax request, the query string will be like this: id=1&name=test