在#bookmark和?参数的网址中,正确的展示位置是什么?

时间:2016-02-27 23:35:22

标签: http

是吗

url?params#bookmark, e.g. google.com?search=blahblah#bookmark

url#bookmark?Params

尝试了两者并且它们有效,但我想知道是否有“正确”的方法来做到这一点?

1 个答案:

答案 0 :(得分:3)

为什么您需要询问first result returned by Google上会找到的内容?

检查Wikipedia article about URL

scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]

RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax

URI         = scheme ":" hier-part [ "?" query ] [ "#" fragment ]


     foo://example.com:8042/over/there?name=ferret#nose
     \_/   \______________/\_________/ \_________/ \__/
      |           |            |            |        |
   scheme     authority       path        query   fragment
      |   _____________________|__
     / \ /                        \
     urn:example:animal:ferret:nose