$(node.target.nextElementSibling).children().each(function(index,ele){
    if(checked){
        $(‘#rcDimTreeRow‘).tree(‘check‘,$(‘div:first‘,this)[0]);
    }else{
        $(‘#rcDimTreeRow‘).tree(‘uncheck‘,$(‘div:first‘,this)[0]);
    }
});原文:http://www.cnblogs.com/hujiapeng/p/5209316.html