读书人

EXt树铺展指定层

发布时间: 2012-11-25 11:44:31 作者: rapoo

EXt树展开指定层

?? /**
??? ?* 树节点展开
??? ?*/
??? function deepthexpand(node){?
??? ??? node.expand();?
??? ??? if(node.getDepth() <=2 ){? //可以改为具体指定层数
??? ??? ??? node.eachChild(function(childnode){deepthexpand(childnode)});????
??? ??? }?
??? ??
??? }

读书人网 >Web前端

热点推荐