- wx.canvasToTempFilePath 无效,也不报错,有知道是什么原因的吗?
wx.canvasToTempFilePath 方法根本运行不了 只打印出开始了跟走过了 有没有大佬解答下 createQrCode: function (url, canvasId, cavW, cavH) { //调用插件中的draw方法,绘制二维码图片 QR.api.draw(url, canvasId, cavW, cavH); setTimeout(() => { this.canvasToTempImage(); }, 2000); }, canvasToTempImage: function () { console.log('开始了'); wx.canvasToTempFilePath({ canvasId: 'mycanvas', success: function (res) { console.log(res); var tempFilePath = res.tempFilePath; console.log(tempFilePath); this.setData({ imagePath: tempFilePath, }); }, fail: function (res) { console.log('错误'); console.log(res); } }); console.log('走过了'); },
2020-11-27 - 如何解决draw()报错 ctx.draw is not a function 的问题?
https://developers.weixin.qq.com/s/3FJTnnmL7zhy
2020-05-16 - wx.createCanvasContext停用?camera的使用
如何使用camera拍照之后取想要区域的照片?
2021-05-15