//展开根节点下的第一级子节点
function expendOneNode(event,treeId,treeNode){
zTree = $.fn.zTree.getZTreeObj("treeDemo");
var node = zTree.getNodes();
//console.log(treeId);
if(treeNode==null){
//将根节点全部展开节点
zTree.expandNode(node[0], true, false, false);//展开节点就会调用后台查询子节(异步)
//自定义一个标记,表示首次打开访问日志菜单 access-View.jsp查询全部数据
$("#resource_manage_right").attr('src',"${appRoot}/log/viewAccessCheckedTreeLog.action?businessId=allData");
}
}
转载于:https://www.cnblogs.com/xplj2013/p/7365318.html