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
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。