JS中字符串的编码 解码 DEPTNAME 是一个字符串 编码: DEPTNAME = encodeURI(encodeURI(DEPTNAME)); 解码: DEPTNAME = decodeURI(DEPTNAME,"UTF-8"); 参考自:https://blog.csdn.net/zlt995768025/article/details/77824910