admin管理员组文章数量:1278859
Is there an opposite API to encodeURIComponent
in JavaScript? Suppose you have a String with a bunch of %25
etc in it for URI purposes. Is there an API which un-encodeURI it?
Thanks.
Is there an opposite API to encodeURIComponent
in JavaScript? Suppose you have a String with a bunch of %25
etc in it for URI purposes. Is there an API which un-encodeURI it?
Thanks.
Share Improve this question asked Jun 4, 2013 at 13:02 More Than FiveMore Than Five 10.4k23 gold badges83 silver badges141 bronze badges 2-
7
...
decodeURIComponent
. – Yoshi Commented Jun 4, 2013 at 13:04 - That's an answer. My bad for not realising it. Add it and I'll accept it. – More Than Five Commented Jun 4, 2013 at 13:07
1 Answer
Reset to default 11If you go to the docs on MDN for encodeURIComponent you will see a section that shows you the related methods
See also
- decodeURI
- decodeURIComponent
- encodeURI
A good resource helps you out with questions like this.
本文标签: urlencodeOpposite to encodeURIComponent in JavaScriptStack Overflow
版权声明:本文标题:urlencode - Opposite to encodeURIComponent in JavaScript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741256699a2366815.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论