怎么向async中的url动态传参
ztree吧
全部回复
仅看楼主
level 1
guaizaibu 楼主
async: {
enable: true,
contentType: "application/x-www-form-urlencoded",
type: "post",
//url: "login.do?method=getMenuTrees",
url: "login.do?method=getMenuTreesByRoles&id=*200003*",
autoParam: ["id"],
dataFilter: null
}
我想"login.do?method=getMenuTreesByRoles&id=*200003*这里的id为参数 要怎么传呢
2014年07月31日 01点07分 1
level 1
我也纠结怎么动态传参呢。。
2014年08月01日 02点08分 2
setting.async.otherParam= ["id", id];
2014年08月01日 08点08分
就可以传了
2014年08月01日 08点08分
level 1
treeObj.async.otherParam = {"a":a};
2014年08月11日 09点08分 3
1