Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html href从父项形成链接时丢失参数值_Html_Href - Fatal编程技术网

Html href从父项形成链接时丢失参数值

Html href从父项形成链接时丢失参数值,html,href,Html,Href,我有一个网址: "http://localhost:8000/group/2" 在这一页中,我有: <a href="groupSpecific/1" class="button">GroupSpecific1</a> 我希望出现的是表单的链接:“http://localhost:8000/group/2/groupSpecific/1“ 由于某种原因,形成的链接是:“http://localhost:8

我有一个网址:

"http://localhost:8000/group/2"
在这一页中,我有:

<a href="groupSpecific/1" class="button">GroupSpecific1</a>

我希望出现的是表单的链接:
“http://localhost:8000/group/2/groupSpecific/1“

由于某种原因,形成的链接是:
“http://localhost:8000/group/groupSpecific/1“


如何防止参数从url中消失?

如果在url中的2后面添加“/”会发生什么?您的
中可能有一个
标记,您的
先生,您是个天才,所有问题都解决了,谢谢!!