参考:以v3.5.15版本为例
var setting = {
treeId: 'my_tree',
view: {
nameIsHTML: !0,
expandSpeed: '',
showTitle: !1,
showIcon: function(treeId, treeNode) {
return treeNode.isParent; } },
async: {
enable: !0,
type: 'get',
url: "你的url",
autoParam: ["id",'name'],//这个参数是获取到的数据中所具备的属性{id:1,others:'....'},所以,如果你说的想传的参数是根据每条记录中都具备的,你可以在这里指定
otherParam: {//这个是额外的附加的参数
"r": Math.random(),
"t": 'xxx'
}
}};
var setting = {
treeId: 'my_tree',
view: {
nameIsHTML: !0,
expandSpeed: '',
showTitle: !1,
showIcon: function(treeId, treeNode) {
return treeNode.isParent; } },
async: {
enable: !0,
type: 'get',
url: "你的url",
autoParam: ["id",'name'],//这个参数是获取到的数据中所具备的属性{id:1,others:'....'},所以,如果你说的想传的参数是根据每条记录中都具备的,你可以在这里指定
otherParam: {//这个是额外的附加的参数
"r": Math.random(),
"t": 'xxx'
}
}};
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货