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

javascript - thinkphp parameter is how to pass url

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-18 09:15:45
Original
1536 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:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template