首页 > 代码库 > EasyUI Tree 隔行换色

EasyUI Tree 隔行换色

$(‘#Tree‘).tree({            onExpand: function (node) {                $("#Tree .tree-node").removeClass("tree-node-css");                $("#Tree .tree-node:visible:odd").toggleClass("tree-node-css");            },            onCollapse: function (node) {                $("#Tree .tree-node").removeClass("tree-node-css");                $("#Tree .tree-node:visible:odd").toggleClass("tree-node-css");            }        });

  

1 .tree-node-css {2         background: #e2e2e2;3         color: #000000;4     }

 

EasyUI Tree 隔行换色