easyui tree节点是展开的,节点闭合后再展开时不向后台请求数据

2025-04-24 12:48:11
推荐回答(1个)
回答1:

var tree2=$('#taskTree').tree({
url:"test!showTree.action",
onBeforeExpand:function(node,param){
$('#taskTree').tree('options').url = "test!action!parentId="+node.id;
}
}
每次展开之前往后台发送数据