< canvas canvas-id = "poster-canvas" class = "poster-canvas" ></ canvas > |
wx.canvasToTempFilePath({ canvasId: 'poster-canvas' , success: (res) => { console.log( '绘图完成:' , Date.now()); }, fail: (res) => { console.warn(res); } }) |
同一个段代码,遇到两种报错:
1、canvasToTempFilePath: fail no image,iphone6S, 微信版本6.5.15,不稳定复现,但概率也挺大的;
2、canvasToTempFilePath: fail: get canvas by canvasIs failed,小米2,微信版本6.5.13,稳定复现;
请问以上两个报错可能是什么原因导致的?