用小程序 canvas 获取图像的信息报错.
const ctx = wx.createCanvasContext('skinCanvas');
// await this.editEye(ctx);
ctx.drawImage("../imgs/body.png",0,0,450/2,450/2)
ctx.draw(false,()=>{
wx.canvasGetImageData({
canvasId: 'skinCanvas',
width: 1,
height: 1,
x: 0,
y: 0,
success(res) {
console.log("res:",res)
},
fail(res) {
console.log("faild",res)
}
})
})
TypeError: window.atob is not a function
请问谁知道怎么弄呢? 有了解的大神吗?
更新到最新的微信小程序开发工具后没有错误了.