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.
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>