Home >Backend Development >PHP Tutorial >javascript - thinkphp parameter is how to pass url
The parameter of my function is passed in a url address. How should I write the U command on the front end? I can’t write well
Modified
The parameter of my function is passed in a url address. How should I write the U command on the front end? I can’t write well
Modified
<code><a href="{:U('Index/downfile',array('fileurl'=>'./Public/css/style.css'))}">下载</a></code>
downfile code
<code>\Org\Net\Http::download($fileurl);</code>
<code>U('XXX/downfile', array('fileurl'=>'www.baidu.com')) </code>
U method can write links with parameters like this