1.如何让用户只能点击页子节点
var setting = { callback: { beforeClick: zTreeBeforeClick } }; function zTreeBeforeClick(treeId, treeNode, clickFlag) { return !treeNode.isParent;//当是父节点 返回false 不让选取 };
时间: 2024-10-14 03:53:42
1.如何让用户只能点击页子节点
var setting = { callback: { beforeClick: zTreeBeforeClick } }; function zTreeBeforeClick(treeId, treeNode, clickFlag) { return !treeNode.isParent;//当是父节点 返回false 不让选取 };