PHP: 对应->>>>JS: 编码:base64_encode($string); 编码:btoa(encodeURI($string)); 解密:base64_decode($string); 解密:decodeURI(atob(string));