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)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ba2b-2aff1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ba2b-2aff1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?