摘要: 一:javascript 中的三个对字符串编码和解码函数: a)编码函数:escape, encodeURI, encodeURIComonent。作用: 用来编码。 b)相对应解码函数:unescape, decodeURI, decodeURIComponent。作用:用来解码。、 这些函数区别: escape(string) 函数,该方法不编码的字符有:+,-,*,/,@,_,.,A-Z,0-9 共69个字符。 encodeURI(string) 函数,该方法不编码的字符有:+,-,*,/,@,_,.,A-Z,0-9,~,!,@,#,$,&,',:,;,=,(,),?,, 阅读全文
posted @ 2012-11-06 18:08 Albert Fei 阅读(307) 评论(0) 推荐(0) 编辑