<canvas type="2d" id="poster" canvas-id="poster" style='width:{{canvasWidth}}px; height:{{canvasHeight}}px' class="poster_canvas" ></canvas>
const query = wx.createSelectorQuery()
query.select('#poster').fields({node:true,size:true}).exec( res=>{
console.log(res)
const canvas = res[0].node
const ctx = canvas.getContext('2d')
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)