//区号只能选子节点
$("#quhao").combotree({
onBeforeSelect: function (node) {
//返回树对象
var tree = $(this).tree;
//选中的节点是否为叶子节点,如果不是叶子节点,清除选中
var isLeaf = tree('isLeaf', node.target);
if (!isLeaf) {
$("#quhao").treegrid("unselect");
}
}
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2021-05-07
  • 2022-12-23
相关资源
相似解决方案