输入banner图图片脚本导航/分类

javascript-thinkPHPu指令跳转问题

我现在希望点击下载,跳转到Index控制器的downfile($fileurl)方法,但是总是跳转到首页?

点击链接后,地址变成下面这样
localhost/appweb/index.php/home/Index/%7B:U('Index/downfile',array('fileurl'=>'/appweb/Publiccss/style.css'))

回复内容:

我现在希望点击下载,跳转到Index控制器的downfile($fileurl)方法,但是总是跳转到首页?

点击链接后,地址变成下面这样
localhost/appweb/index.php/home/Index/%7B:U('Index/downfile',array('fileurl'=>'/appweb/Publiccss/style.css'))

这是U方法没解析。我仔细看了一下你的代码,后面是不是少了个}大括号啊

你少了一半大括号,{:U('')},这样才对