//获取父目录的路径
function getParentDirPath(node)
{
var DirName = node.innerText;
if (DirName == "" || DirName == "undefine") {
return '';
}
DirName = StringDel2Char(DirName); //所有目录前有2个字符是多余的
var PathName= getParentDirPath(node.parentNode.previousSibling.previousSibling) + "\\" + DirName;
//父节点的哥的哥节点。 因为每行都有一个</br>
//node.parentNode.previousSibling.previousSibling
return PathName;
}
function getParentDirPath(node)
{
var DirName = node.innerText;
if (DirName == "" || DirName == "undefine") {
return '';
}
DirName = StringDel2Char(DirName); //所有目录前有2个字符是多余的
var PathName= getParentDirPath(node.parentNode.previousSibling.previousSibling) + "\\" + DirName;
//父节点的哥的哥节点。 因为每行都有一个</br>
//node.parentNode.previousSibling.previousSibling
return PathName;
}