canvas 2d drawImage报错, 请问是什么原因呢?
组件: canvas type="2d" class="canvas" API 使用如下: const query = wx.createSelectorQuery() wx.getImageInfo({ src:"https://xxx.jpg", success: function(picRes) { query.select('.canvas') .fields({ node: true, size: true }) .exec((res) => { var canvas = res[0].node var context = canvas.getContext('2d') context.drawImage(picRes.path, 100, 100, 100, 100) }) } ) } }) 报错如下图 望解答 [图片]