把 base64 转成 ArrayBuffer
可与 arrayBufferToBase64 互相转换
const base64 = 'data:application/json;base64,ewogICJoZWxsbyI6ICJ3b3JsZCIKfQ==';const buffer = base64ToArrayBuffer(base64);arrayBufferToBase64(buffer); // base64.split(',')[1] 复制
const base64 = 'data:application/json;base64,ewogICJoZWxsbyI6ICJ3b3JsZCIKfQ==';const buffer = base64ToArrayBuffer(base64);arrayBufferToBase64(buffer); // base64.split(',')[1]
把 base64 转成 ArrayBuffer
可与 arrayBufferToBase64 互相转换