在线时间:8:00-16:00
132-9538-2358
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
基础库版本 1.1.0 开始支持,低版本需做兼容处理
将 ArrayBuffer 数据转成 Base64 字符串
示例代码
const arrayBuffer = new Uint8Array([11, 22, 33]) const base64 = wx.arrayBufferToBase64(arrayBuffer)
将 Base64 字符串转成 ArrayBuffer 数据
const base64 = 'CxYh' const arrayBuffer = wx.base64ToArrayBuffer(base64)
评论
请发表评论