使用查询字符串和锚点标签形成正确的 URL [英] Proper URL forming with a query string and an anchor hashtag
本文介绍了使用查询字符串和锚点标签形成正确的 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当查询字符串和锚标记(哈希标记)在 URL 中都可见时,它们出现的正确顺序是什么?
When both a query string and anchor tag (hash tag) are visible in a URL, what is the proper order for them to appear?
http://www.whatever.com?var=val#anchor
或
http://www.whatever.com#anchor?var=val
是否有相关文档?
URL 由 WordPress/PHP 处理.
The URLs are being handled by WordPress / PHP.
推荐答案
?var=var#hash
#
之后的所有内容都是客户端.
Everything after #
is client side.
另外,研究URL重写以摆脱丑陋的?var=var代码>.
Also, look into URL rewriting to get rid of ugly ?var=var
.
这篇关于使用查询字符串和锚点标签形成正确的 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文