旧版的 API
在旧版 API 中,空格 (' '
) 和以下字符将在网址对象的属性中自动转义:
< > " ` \r \n \t { } | \ ^ '
例如,ASCII 空格字符 (' '
) 被编码为 %20
。
ASCII 正斜杠 (/
) 字符编码为 %3C
。
Within the Legacy API, spaces (' '
) and the following characters will be
automatically escaped in the properties of URL objects:
< > " ` \r \n \t { } | \ ^ '
For example, the ASCII space character (' '
) is encoded as %20
. The ASCII
forward slash (/
) character is encoded as %3C
.