var name='测试文字'; var t_name=encodeURIComponent(name);
t_name=window.btoa(t_name); console.log(t_name,'base64==>') var p_name=window.atob(t_name); p_name=decodeURIComponent(p_name) console.log(p_name,'还原===》')
2023-08-05 12:12:04
var name='测试文字'; var t_name=encodeURIComponent(name);
t_name=window.btoa(t_name); console.log(t_name,'base64==>') var p_name=window.atob(t_name); p_name=decodeURIComponent(p_name) console.log(p_name,'还原===》')