<canvas type="2d" id="canvas" style="position: absolute; width: 64px; height: 64px;"/>
async initCanvas () {
const { node: canvas } = await new Promise(resolve => {
wx.createSelectorQuery()
.select(`#${canvasId}`)
.node()
.exec(res => {
console.log(res)
})
})
}
skyline模式下真机调试模式下可以出发,体验版不会触发,体验版只有打开调试会触发,
如果发布到线上会触发吗
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。