application\config\temlate.php
...
...
// 省略若干
...
'taglib_end' => '}',
// 静态资源文件字符串替换
'tpl_replace_string' => [
'__STATIC__' => '/static',
'__JS__' => '/static/js',
'__IMAGES__' => '/static/images',
'__AVATAR__' => '/static/images/avatar',
],
THINKPHP5.1静态资源文件字符串替换
猜你喜欢
转载自blog.csdn.net/weixin_38468437/article/details/81916263
今日推荐
周排行