Home  >  Article  >  Backend Development  >  javascript - thinkPHP u command jump problem

javascript - thinkPHP u command jump problem

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

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

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