【发布时间】:2023-03-27 06:00:01
【问题描述】:
我正在获取查询字符串参数并尝试这样做:
var hello = unescape(helloQueryString);
然后它返回:
this+is+the+string
代替:
this is the string
如果 %20 在那里,效果很好,但它是 +。有什么方法可以正确解码这些,使它们 + 符号变为空格?
谢谢。
【问题讨论】:
标签: javascript url query-string decode