//获取子节点,所有父节点的name的拼接字符串
function getFilePath(treeObj){
if(treeObj==null)return "";
var filename = treeObj.name;
var pNode = treeObj.getParentNode();
if(pNode!=null){
filename = getFilePath(pNode) +">"+ filename;
}
return filename;
}
标签:post turn tree node ret parent 获取 name blog
//获取子节点,所有父节点的name的拼接字符串
function getFilePath(treeObj){
if(treeObj==null)return "";
var filename = treeObj.name;
var pNode = treeObj.getParentNode();
if(pNode!=null){
filename = getFilePath(pNode) +">"+ filename;
}
return filename;
}
标签:post turn tree node ret parent 获取 name blog
原文地址:https://www.cnblogs.com/changgf/p/10388604.html