小程序做canvas手写板导出base64时出现问题

发布于 8 年前作者 klong13917 次浏览最后编辑 8 年前来自 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 回复
cuixiuying
cuixiuying1 楼6 年前

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