// 输入字符串let str ='hao'// base64字符串let base64EncodeChars ='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'// 定义输入、输出字节的二进制数let char1, char2, char3, out1, out2, out3, out4,out// 将字符对应的ascII编码转为8位二进制数char1 = str.charCodeAt(0) & ...