http://blog.csdn.net/u010297791/article/details/52784879
这是分页上的
<?phpfunction pages($page,$e_page){$html=‘<a href="?page=1">index</a>‘.‘ ‘;$pre=($page-1<=0)?$page:($page-1);$html.=‘<a href="?page=‘.$pre.‘">pre</a>‘.‘ ‘;$next=($page+1>=$e_page)?$page:($page+1);$html.=‘<a href="?page=‘.$next.‘">next</a>‘.‘ ‘;$html.=‘<a href="?page=‘.$e_page.‘">end</a>‘.‘ ‘;return $html;}?>
意思就是
http://www.xxx.com/a.php?b=1&c=2
那么这个页面里的<a href=‘?d=1‘>???</a>
跳转的页面就是http://www.xxx.com/a.php?d=1
a标签中href=""的几种用法
原文地址:https://www.cnblogs.com/ConfidentLiu/p/8428256.html