当前位置: 代码迷 >> Web前端 >> EXt树铺展指定层
  详细解决方案

EXt树铺展指定层

热度:93   发布时间:2012-11-25 11:44:31.0
EXt树展开指定层

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

  相关解决方案