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 创建了树,里面有复选框。
你能帮我如何在其中获取选中复选框的列表(或数组),以便我可以使用它们进行操作(将它们移动到另一棵树中)?
Tnx 在广告中!
好的,这里是:
var selNodes = node1.tree.getSelectedNodes(); // convert to title/key array var selKeys = $.map(selNodes, function(node1){ alert("[" + node1.data.key + "]: '" + node1.data.title + "'"); });