小程序做canvas手写板导出base64时出现问题
发布于 6 年前 作者 klong 13652 次浏览 来自 官方Issues

微信开发者工具、Android没事,__iOS__会抛这个错误

报错原因:

ArrayBuffer length minus the byteOffset is not a multiple of the element size

使用的是upng转化成base64的方法

参考:

https://github.com/zh8637688/wx-cardscanner

报错代码就是红框里的那段

具体报错:

1 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部