btoa: 将普通字符串转为Base64字符串
atob: 将Base64字符串转为普通字符串
使用btoa和atob来进行Base64转码和解码
 
说明:window.btoa不支持汉字;
 
===》使用window.encodeURIComponent和window.decodeURIComponent
使用btoa和atob来进行Base64转码和解码

相关文章:

  • 2022-12-23
  • 2021-05-17
  • 2021-06-05
  • 2021-11-21
  • 2022-12-23
猜你喜欢
  • 2022-03-07
  • 2021-06-25
  • 2022-01-02
相关资源
相似解决方案