admin管理员组文章数量:1287839
I need to make URL from some custom string values dynamically. I have doubt on encodeURIComponent(string)
function whether it has cross browser issues does anyone experienced trouble with this function (I am not using any JS libraries)?
I need to make URL from some custom string values dynamically. I have doubt on encodeURIComponent(string)
function whether it has cross browser issues does anyone experienced trouble with this function (I am not using any JS libraries)?
- Also see: stackoverflow./questions/75980/… – Christophe Roussy Commented Jun 13, 2016 at 8:32
2 Answers
Reset to default 9encodeURIComponent
works as advertised in a cross-browser fashion. Use it in preference to escape
.
Go for it. This is exactly what encodeURIComponent
is for and it's well-supported across browsers. I've never heard of a serious issue with it on any major implementation.
本文标签:
版权声明:本文标题:javascript - Does anyone have experienced cross browser issues with "encodeURIComponent(string)" - Stack Overf 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741297414a2370897.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论