- wx.canvasToTempFilePath报错
- 当前 Bug 的表现(可附上截图) wx.canvasToTempFilePath会随机出结果,有的时候fail:create bitmap failed,有时正常(此时可输出tempFilePath) [图片]
2018-05-15 - wx.canvasToTempFilePath报错
<canvas style="height:{{canvasSize.height}}px;width:{{canvasSize.width}}px" canvas-id='share-pyq' binderror='canvasIdErrorCallback'></canvas> (canvas直接在page下) drawShareCanvas(){ var that = this ......//canvas绘制 this.setData({ canvasSize: { height: size.height, width: size.width, opacity: 0 } }) ctx.draw(true,that.saveCanvasToFile) console.log() }, saveCanvasToFile() { var that = this wx.canvasToTempFilePath({ canvasId: 'share-pyq', success: function (res) { ......//成功后的操作 }, fail(res){ console.log(res) } }, that) } 控制台报错:"canvasToTempFilePath:fail:illegal arguments"
2018-05-10