1 前端JavaScript加密 window.btoa(unescape(encodeURIComponent(str))) 2 后端Java解密 String decode = new String(Base64.getDecoder().decode(str), StandardCharsets.UTF_8);