范文 |
查询 “js中文编码” 根据取到的值转到 ... a=&aq=f&oq= 就是把js中文编码转化成js%e4%b8%ad%e6%96%87%e7%bc%96%e7%a0%81 处理方法: <script> alert(encodeuri('js中文编码')); alert(decodeuri(encodeuri('js中文编码'))); </script> 编码成unicode码,编码值由页面utf8或者utf-8决定 ascii码不受影响 浏览器向服务端发送http请求时会进行unicode编码
|