js中escape,encodeURI,encodeURIComponent三个函数的区别
简单点说就是以下几个区别:
escape不编码字符有69个:*,+,-,.,/,@,_,0-9,a-z,A-Z
encodeURI不编码字符有82个:!,#,$,&,',(,),*,+,,,-,.,/,:,;,=,?,@,_,~,0-9,a-z,A-Z
encodeURIComponent不编码字符有71个:!, ',(,),*,-,.,_,~,0-9,a-z,A-Z
原创
2012-03-21 16:19:05 ·
401 阅读 ·
0 评论