str=encodeURI(str);
后台--URLDecoder.decode(str,"UTF-8");
后台加密和解密:
URLEncoder.encode("字符串","UTF-8");//编码(加密);
URLDecoder.decode("解密","UTF-8");//解密
参考链接:https://blog.csdn.net/qq_37788460/article/details/89491203
str=encodeURI(str);
后台--URLDecoder.decode(str,"UTF-8");
后台加密和解密:
URLEncoder.encode("字符串","UTF-8");//编码(加密);
URLDecoder.decode("解密","UTF-8");//解密
参考链接:https://blog.csdn.net/qq_37788460/article/details/89491203