HTML anchor link going to the same page with different query string

故事扮演 提交于 2020-04-12 12:24:36

问题


Within a web document (http://example.com/bla.php?x=123&y=321), is it possible to create an anchor link which goes to http://example.com/bla.php?z=111 without putting bla.php in the anchor's href?


回答1:


This should work:

<a href="?z=111">link</a>


来源:https://stackoverflow.com/questions/31777940/html-anchor-link-going-to-the-same-page-with-different-query-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!