请问解决了吗,我们这边也是
Canvas 2D ios出不来?iOS14.5.1 iphone11 微信版本8.0.20 调试基础库2.25.2 官方demo也不行 预览出来白屏
2022-09-26[图片] 我是报这个错误,安卓和模拟器都正常,就IOS会报错
canvasToTempFilePath:fail invalid viewIdhttps://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasToTempFilePath.html [图片] 手机型号:iPhoneX 运行系统:IOS 15.4.1 微信版本:8.0.25 基础库版本:2.25.1 代码如下: ctx.draw(false, (() => { setTimeout( () => { wx.canvasToTempFilePath({ quality: 0.5, fileType: 'jpg', canvasId: 'firstCanvas', success: function (res) { wx.hideLoading() that.setData({ 'markPhoto': res.tempFilePath }) }, fail: function(error) { console.log('error', error) }, complete (complete) { console.log('complete', complete) } }, that) }, 100) })())
2022-09-22