摘要: //escape()不能直接用于URL编码,它的真正作用是返回一个字符的Unicode编码值。比如"春节"的返回结果是%u6625%u8282,escape()不对"+"编码 主要用于汉字编码。 alert(escape("春节")); alert(unescape(escape("春节"))); 阅读全文
posted @ 2017-06-16 16:54 宋宇 阅读(412) 评论(0) 推荐(0) 编辑