https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createSelectorQuery.html
VM13:2 Unhandled promise rejection TypeError: Cannot read property 'createView' of undefined
at KC._initCanvasInstance (eval at Te.n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1335059)
at KC._init (eval at Te.n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1321389)
at t (eval at Te.n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1321552)
at KC._onReady (eval at Te.n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1321584)
at eval (eval at Te.n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1819585)
at new V (eval at Te.n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:48046)
at HU (eval at Te.n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1819562)
at eval (eval at Te.n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1821801)
at Array.forEach (<anonymous>)
at eval (eval at Te.n.call.document (runtime.js?devtools_ignore=true:1), <anonymous>:2:1821784)
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
https://developers.weixin.qq.com/community/develop/doc/00006eb96f8c488d42ad16b5b51000
canvas不能设置display吧
解决了吗,怎么处理
开发工具里面测试都是好的,但是预览和真机里面都会报错,不是createSelectorQuery就是canvasToTempFilePath的方法,真的太奇怪了 //获取临时图片的url canvasToTempUrl: function (option) { var that=this; return new Promise((resolve, reject) => { console.log('canvasToTempUrl.option:{}',option) wx.canvasToTempFilePath({ ...option, success: function (res) { const tempFilePath = res.tempFilePath; resolve(tempFilePath) }, fail: function (err) { console.log('canvasToTempUrl.err:option{}'这个