Wener Notes

URL

约 1 分钟阅读
text
https://example.com/products/123?q=hello#details
└─scheme ──host───────path────── query ─fragment
  • 安全字符 / URL Safe characters
  • unreserved / 未保留字符
  • 安全字符 - [0-9a-zA-Z-._~]
  • 不安全字符 - <>[]{}|\^%#
  • 开发时可考虑用作分隔符的字符
    • -, ., ~, _

保留字符

namechar
ampersand&
dollar$
plus sign+
comma,
forward slash/
colon:
semi-colon;
equals=
question mark?
'At' symbol@
pound#

不安全字符

namechar
space
less than and greater than<>
open and close brackets[]
open and close braces{}
pipe|
backslash\
caret^
percent%

关联信息

反向链接、本文链接的其他页面和外部资料。

References

标准文档1 条
  • RFC 3986datatracker.ietf.org/doc/html/rfc3986
    RFC

    IETF Request for Comments standard document.

最近更新commit 9377cafEdit

On this page