JavaScript:encodeURIComponent没有编码哪些字符? [英] JavaScript: What characters are not encoded by encodeURIComponent?
本文介绍了JavaScript:encodeURIComponent没有编码哪些字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在用不同的语言编写自己的函数,如果可能,我希望它能提供相同的结果。
I'm writing my own function in a different language, and I want it to provide identical results if possible.
推荐答案
您可以在 MDC文档中找到相关信息:
You can find information in the MDC documentation:
encodeURIComponent
转义除以下字符外的所有字符:
字母,十进制数字,- _。 ! 〜*'()
encodeURIComponent
escapes all characters except the following:
alphabetic, decimal digits,- _ . ! ~ * ' ( )
这篇关于JavaScript:encodeURIComponent没有编码哪些字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文