encodeURL 用于对整个 URI 进行编码,其中功能字符如 ?, &, /, = 不会被转义。 encodeURLComponent 会对将所有字符转化为合法 URI 字符,常用于手动拼接 URI 。
encodeURL 用于对整个 URI 进行编码,其中功能字符如 ?, &, /, = 不会被转义。
encodeURLComponent 会对将所有字符转化为合法 URI 字符,常用于手动拼接 URI 。