您的位置:首页 > 编程语言 > PHP开发

TP3.2 thinkPHP3.2框架U方法拼接 HTML页面路径跳转

2018-02-24 14:27 585 查看
1.U方法路径拼接

eg  {:U('Task/download/?filename='.$vo['attach_url'].'&name='.$vo['attach'])}"

eg2  {:U('a/b',array(id=>22)}2.__CONTROLLER路径拼接    window.location.href="__CONTROLLER__/download/filename/" + path+"/name/"+name;3.js变量和U方法拼接var id = $(this).attr('data');window.location.href="{:U('Active/edit')}?id="+id;4.<a href="{:U("Active/view?tpl=show&id=$d[id]")}"></a>

5.<a href="{:U('Active/volunteer?page=')}{$page+1}">下一页</a><a href="{:U('Active/volunteer?page=')}{$page+1}&searchText={$searchText}">下一页</a><a href="{:U('Dept/index')}?p={$p+1} > </a>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: