<canvas type="2d" id="canvas1" style="width:100%;"></canvas>
query.select($canvasID).fields({ node: true}).exec((res) => {
console.log(res)
const canvas = res[0].node
const ctx = canvas.getContext('2d')
ctx.moveTo(30,30)
ctx.lineTo(568,30)
ctx.stroke()
})
//ios
//安卓(正常)
这个问题,有解决方案吗,我也遇到了