+
%20
encodeURI:对完整 URL 编码,保留 # ? & / = 等 URL 特殊字符
# ? & / =
encodeURIComponent:对查询参数值编码,所有 非字母数字字符都转义
⚡ 空格编码:+ 适用于 application/x-www-form-urlencoded,%20 是标准 URL 编码(解码时两种都支持)
application/x-www-form-urlencoded
© 2026 xiong da. All rights reserved.
GitHub Repository