callback: { onAsyncSuccess: zTreeOnAsyncSuccess, beforeCheck : function(treeId, treeNode) { if (treeNode.isParent) { parent.ZENG.msgbox.show("请选择子节点!",0); return false; } } }
ztree 设置父节点不能选择
最新推荐文章于 2022-09-14 15:01:09 发布
callback: { onAsyncSuccess: zTreeOnAsyncSuccess, beforeCheck : function(treeId, treeNode) { if (treeNode.isParent) { parent.ZENG.msgbox.show("请选择子节点!",0); return false; } } }