JS中字符串的编码 解码



DEPTNAME 是一个字符串
编码: DEPTNAME = encodeURI(encodeURI(DEPTNAME));
解码: DEPTNAME = decodeURI(DEPTNAME,"UTF-8");



参考自:https://blog.csdn.net/zlt995768025/article/details/77824910

猜你喜欢

转载自www.cnblogs.com/weiqang/p/11595431.html
今日推荐