app/
|-- lib
| |-- seajs
|-- bussiness
| |-- user
| | |-- model
| | | |-- user.js
| | |-- view
| | | |-- index.js
| | |-- controller
| | |-- index.js
| `-- others //其他的一些节点,结构与user一样
|-- prodution //发布包
| |-- user
| |-- user.js //将bussiness目录下的子目录user下的所有js文件打包成一个节点
| |-- user.html
`-- static
|-- index.html
`-- user.html
类似上面的效果,生成的都是文本组成的代码结构图,求含代码的完整例子
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
用手写怎么写呢?
linux或windows都可以用
tree
来生成你上面描述的代码树形图。 不过在linux下面,find
相对来说更加强大。Bash (Copied from CenterKey)
Python (Copied from Stackoverflow)
实际上你可以看看这里: Walk a directory/Recursively