javascript - thinkphp parameter is how to pass url

WBOY
Release: 2016-08-18 09:15:45
Original
1455 people have browsed it

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>
Copy after login

downfile code

<code>\Org\Net\Http::download($fileurl);</code>
Copy after login

<code>U('XXX/downfile', array('fileurl'=>'www.baidu.com'))
</code>
Copy after login

U method can write links with parameters like this

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!