## 模板输出替换变量 | 公共变量名 | 完整路径 | 备注 | | --- | --- | --- | | `__ROOT_DIR__` | / | 自动设置根目录或子目录| | ![](https://box.kancloud.cn/90a27f1d68e1593a79fdd812638263e6_101x20.png) | /static | 静态资源根目录 | | `__PLUGINS__` | /plugins | 插件根目录 | | `__UPLOAD__` | /upload | 上传根目录 | | `__PUBLIC_CSS__` | /static/css | 公共样式目录 | | `__PUBLIC_JS__` | /static/js | 公共JS目录 | | `__PUBLIC_IMG__` | /static/image | 公共图片目录 | | `__ADMIN_CSS__` | /static/admin/css | 后台公共样式目录 | | `__ADMIN_JS__` | /static/admin/js | 后台改公共JS目录 | | `__ADMIN_IMG__` | /static/admin/image | 后台公共图片目录 | | `__ADMIN_MOD_CSS__` | /static/模块名/css | 模块后台样式目录 | | `__ADMIN_MOD_JS__` | /static/模块名/js | 模块后台JS目录 | | `__ADMIN_MOD_IMG__` | /static/模块名/image | 模块后台图片目录 | | ![](https://box.kancloud.cn/0c69556dd2b2957d0642437a44be8287_74x20.png) | /theme/模块名/主题名/static/css | 模块前台样式目录 | | ![](https://box.kancloud.cn/1568b88da2821bd61fb4a55a38e361ce_66x20.png) | /theme/模块名/主题名/static/js | 模块前台JS目录 | | `__WAP_CSS__` | /theme/模块名/wap/static/css | 模块前台手机版样式目录 | | `__WAP_JS__` | /theme/模块名/wap/static/js | 模块前台手机版JS目录 | | `__WAP_IMG__` | /theme/模块名/wap/static/image | 模块前台手机版图片目录 | | `__IMG__` | /theme/模块名/主题名/static/image | 模块前台图片目录 | | `__PLUGINS_CSS__` | /plugins/插件名/static/css | 插件样式目录 | | `__PLUGINS_JS__` | /plugins/插件名/static/js | 插件JS目录 | | `__PLUGINS_IMG__` | /plugins/插件名/static/image | 插件图片目录 | 使用方法如下: ~~~ <link rel="stylesheet" href="__ADMIN_JS__/layui/css/layui.css"> <link rel="stylesheet" href="__ADMIN_CSS__/style.css"> <script type="text/javascript" src="__ADMIN_JS__/global.js"></script> ~~~