在开发者工具上可以正常运行, 微信扫码就卡在100%了
const canvas = wx.createCanvas()
const context = canvas.getContext('2d') // 创建一个 2d context
const img= wx.createImage();
const imgX=0;
const imgY=0;
const imgW=canvas.width*1.3;
const imgH = imgW/3*4;
img.onload=function()
{
context.drawImage(img, imgX, imgY, imgW, imgH );
}
img.src='./img/img1.jpg';
请问使用的是哪个工具版本?