异步加载时需要自动提交父节点属性的参数。[setting.async.enable = true 时生效]
默认值:[ ]
1、将需要作为参数提交的属性名称,制作成 Array 即可,例如:["id", "name"]
2、可以设置提交时的参数名称,例如 server 只接受 zId : ["id=zId"]
var setting = {
async: {
enable: true,
url: "http://host/getNode.php",
autoParam: ["id"]
}
};
假设 异步加载 父节点(node = {id:1, name:"test"}) 的子节点时,将提交参数 id=1
......
var setting = {
async: {
enable: true,
url: "http://host/getNode.php",
autoParam: ["id=zId"]
}
};
假设 对父节点 node = {id:1, name:"test"},进行异步加载时,将提交参数 zId=1
......