Home > Backend Development > PHP Tutorial > javascript - thinkPHP u command jump problem

javascript - thinkPHP u command jump problem

WBOY
Release: 2016-08-18 09:15:51
Original
1203 people have browsed it

I now want to click download and jump to the downfile($fileurl) method of the Index controller, but it always jumps to the homepage?

javascript - thinkPHP u command jump problem

javascript - thinkPHP u command jump problem

After clicking the link, the address becomes as follows
localhost/appweb/index.php/home/Index/%7B:U('Index/downfile',array('fileurl'=>'/appweb/Publiccss/style. css'))

Reply content:

I now want to click download and jump to the downfile($fileurl) method of the Index controller, but it always jumps to the homepage?

javascript - thinkPHP u command jump problem

javascript - thinkPHP u command jump problem

After clicking the link, the address becomes as follows
localhost/appweb/index.php/home/Index/%7B:U('Index/downfile',array('fileurl'=>'/appweb/Publiccss/style. css'))

This is U method not parsed. I took a closer look at your code. Is there a }braces missing at the end?

You are missing half of the braces, {:U('')}, this is correct

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