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.
我有一个带有复选框的分层 dynatreee。单击部分选定树的父复选框首先选择其所有子节点,然后在选择/取消选择所有子节点之间切换。如何使第一次单击取消选择所有子项而不是选择它们?
非常感谢
问候,德扬
在您的 onSelect 函数中尝试:
onSelect: function(select, node){ // visit all children of the node and deselect them node.visit(function(node){ node.select(false); }); }