配置:
var setting = {
check: {
enable: false
},
async: {
enable: true,
type: "get",
headers: Util.getHeader(),
url: URL ,
autoParam: ["ID"],//多个参数用英文逗号隔开;
otherParam: {"otherParam": "zTreeAsync"},
dataFilter: filter
},
data: {
//自定义数据结构
key: {
name: "NAME",
isParent: "IS_PARENT",
},
simpleData: {
enable: true,
idKey: "ID",
pIdKey: "PARENT_ID",
//根节点ID
rootPId: '我是根节点ID'
}
},
callback: {
//树点击事件