Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将持久性与 dynatree 一起使用,当重新加载树时,我想获取所有选定的节点,以便在请求中发送它们。我怎样才能做到这一点 ?我只找到了一种使用 onSelect 事件获取选定节点的方法。
这将返回所有选定的节点:
var selKeys = $.map($("#tree").dynatree("getSelectedNodes"), function(node) { return node.data.key; });