首页 > Web开发 > 详细

a标签中href=""的几种用法

时间:2018-02-07 20:38:46      阅读:304      评论:0      收藏:0      [点我收藏+]

http://blog.csdn.net/u010297791/article/details/52784879

 

这是分页上的

<?php
function 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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!