0

PHP urlencode 在 Javascript 里面是使用什么函数代替?

mignon created at6 years ago view count: 2382
report
回复
0

var str = encodeURIComponent(str);

6 years ago 回复
0

只有个 rawurlencode 对应的 encodeURIComponent , 如果一定要和urlencode一致,建议自己实现下。

6 years ago 回复

Recent search keywords