我正在使用这个插件https://github.com/caprica/jquery-orgchart来显示来自 ActiveDidrectory 的所有用户。问题是结构不正确。所以我需要显示树,以便以后能够修复它。所以我需要在页面上显示多棵树。
$("#chart").orgChart({
data: $.post(JSON from the server)
});
这给了我以下错误
TypeError: rootNodes[0] is undefined $container.empty().append(rootNodes[0].render(opts));
任何想法都将是有用和赞赏的。谢谢
PS我检索的数据格式正确,经过测试的缩小版本。当有 r 多个 root="0" 时,问题就来了