是吗
url?params#bookmark, e.g. google.com?search=blahblah#bookmark
或
url#bookmark?Params
尝试了两者并且它们有效,但我想知道是否有“正确”的方法来做到这一点?
答案 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