How thinkphp5.1 displays static resource path constants in templates

has been configured with a static resource path. Loading _ _ JS__ in the template translates to a static path address: such as / static/js
, but now I want to display _ _ JS__ in the template instead of the static path address.

Php
Mar.22,2021

Nobody knows or is the question too simple?


TP5.1 has cancelled the system constant

you can customize the configuration in the app file in the config directory to use

'__JS__'     => '/static/js/'

use

in templates
url({$Think.config.__JS__}jquery.min.js)
Menu