escape 与 encodeURI 与 encodeURIComponent 的安全字符

默认分类 · 2024-08-07

下面列出了这三个函数的安全字符(即函数不会对这些字符进行编码)

安全字符,即 不会被 编码 的字符!!!
安全字符,即 不会被 编码 的字符!!!
安全字符,即 不会被 编码 的字符!!!


escape(69个):*/@+-._0-9a-zA-Z
encodeURI(82个):!#$&'()*+,/:;=?@-._~0-9a-zA-Z
encodeURIComponent(71个):!'()*-._~0-9a-zA-Z
js
Theme Jasmine by Kent Liao