zTreeObj.cancelSelectedNode function 举例 取消当前所有被选中节点的选中状态 var treeObj = $.fn.zTree.getZTreeObj("tree"); treeObj.cancelSelectedNode(); 1 2 取消当前第一个被选中节点的选中状态 var treeObj = $.fn.zTree.getZTreeObj("tree"); var nodes = treeObj.getSelectedNod
<input type="checkbox" onclick="checkboxOnclick(this)" /> <script> function checkboxOnclick(checkbox){ if ( checkbox.checked == true){ //Action for checked }else{ //Action for not checked } } </script> 轉載:https://blog