为什么atob()不是btoa()
来自三线的随记
javascript里面
使用atob()函数完成base-64 decode
使用btoa()函数完成base-64 encode
命名的原因,找到一个解释
In these APIs, for mnemonic purposes, the "b" can be considered to stand for "binary", and the "a" for "ASCII".
In practice, though, for primarily historical reasons, both the input and output of these functions are Unicode strings.