编码 window.btoa(str) 创建一个 base-64 编码的字符串 window.btoa(‘abc’) // "YWJj" 解码 window.atob(str) 解码使用 base-64 编码的字符串 window.atob('YWJj') // abc