Home >Backend Development >PHP Tutorial >javascript - thinkphp parameter is how to pass url

javascript - thinkphp parameter is how to pass url

WBOY
WBOYOriginal
2016-08-18 09:15:451516browse

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

javascript - thinkphp parameter is how to pass url

javascript - thinkphp parameter is how to pass url

Modified

javascript - thinkphp parameter is how to pass url

javascript - thinkphp parameter is how to pass url

Reply content:

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

javascript - thinkphp parameter is how to pass url

javascript - thinkphp parameter is how to pass url

Modified

javascript - thinkphp parameter is how to pass url

javascript - thinkphp parameter is how to pass url

<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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP array reorganizationNext article:PHP array reorganization