仅列出标题 列出摘要
2013年7月9日

js编码处理(转)

摘要: 1. 使用 JS 中的 encodeURIComponent 或 encodeURI 方法。 说明: encodeURIComponent(String) 对传递参数进行设置。不编码字符有 71 个: ! , ' , ( , ) , * , - , . , _ , ~ , 0-9 , a-z , A-Z 。例:var url = “ 中国 ”; encodeURI(String) 对 URL 整体转换。不编码字符有 82 个: ! , # , $ , & , ' , ( , ) , * , + ,,, - , . , / , : , ; , = , ? , @ , _ 阅读全文
posted @ 2013-07-09 14:04 baoyiluo 阅读(286) 评论(0) 推荐(0) 编辑