6

【笔记】JS实现Base64编解码

 1 year ago
source link: https://loli.fj.cn/2023/02/27/JS%E5%AE%9E%E7%8E%B0Base64%E7%BC%96%E8%A7%A3%E7%A0%81/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【笔记】JS实现Base64编解码

2023-02-27

JS实现Base64编解码

Base64编码

<str>:未编码的字符串

window.btoa("<str>");

Base64解码

<str>:已编码的字符串

window.atob("<str>");

简书——小小的开发人员


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK