onBeforeCheck: function (node) {
$(this).find("span.tree-checkbox").removeClass("tree-checkbox1").addClass("tree-checkbox0") ;
$(this).find("span.tree-checkbox").removeClass("tree-checkbox1").addClass("tree-checkbox0") ;
}
本文介绍了一个树状结构中复选框状态切换的方法。通过简单的JavaScript代码实现从选中到未选中的状态变化,并且更新了对应的样式类。

被折叠的 条评论
为什么被折叠?