开发者

does anyone have experienced cross browser issues with "encodeURIComponent(string)"

开发者 https://www.devze.com 2023-01-30 02:32 出处:网络
I need to make URL from some custom string values dynamically. I have doubt on\"encodeURIComponent(string)\"function whether it has cross browser开发者_StackOverflow issues does anyone experienced tro

I need to make URL from some custom string values dynamically. I have doubt on "encodeURIComponent(string)" function whether it has cross browser开发者_StackOverflow issues does anyone experienced trouble with this function(I am not using any JS libraries)?


encodeURIComponent 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消