分享人 | CL |
分享时间 | 2021-12-12 10:22 |
最后更新 | 2021-12-12 10:22 |
修订版本 | 0 |
子程序大小 | 3.8 KB |
Quicker版本 | 1.28.6.0 |
将Tab缩进的文本,转换为层级目录路径的形式。
如:
AAA A1 A2 A3 BBB B1 B2 B3
输出为:
AAA AAA/A1 AAA/A2 AAA/A3 BBB BBB/B1 BBB/B2 BBB/B3
或Json:
[ { "Name":"AAA", "Index":0, "Level":0, "Children":[ { "Name":"A1", "Index":1, "Level":1, "Children":null, "Path":"AAA/A1" }, { "Name":"A2", "Index":2, "Level":1, "Children":null, "Path":"AAA/A2" }, { "Name":"A3", "Index":3, "Level":1, "Children":null, "Path":"AAA/A3" } ], "Path":"AAA" }, { "Name":"BBB", "Index":4, "Level":0, "Children":[ { "Name":"B1", "Index":5, "Level":1, "Children":null, "Path":"BBB/B1" }, { "Name":"B2", "Index":6, "Level":1, "Children":null, "Path":"BBB/B2" }, { "Name":"B3", "Index":7, "Level":1, "Children":null, "Path":"BBB/B3" } ], "Path":"BBB" } ]
修订版本 | 更新时间 | 更新说明 |
---|---|---|
0 | 2021-12-12 10:22 |