以Promise风格调用: 不支持。
将 ArrayBuffer 对象 转成Base64字符串
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
base64String | ArrayBuffer | 是 | 要转化成 Base64 字符串 的 ArrayBuffer 对象 |
属性 | 类型 | 说明 |
---|---|---|
arrayBuffer | string | 返回值 |
const arrayBuffer = new Uint8Array([11, 22, 33]) const base64 = xhs.arrayBufferToBase64(arrayBuffer)