代码是:
wx.getSystemInfo({ success: function (res) { that.setData({ width: res.windowWidth, height: res.windowHeight, lastX: res.windowWidth * 0.23, lastY: 0 }) console.log(res.windowWidth); console.log(res.windowHeight); ctx.setFillStyle('white'); ctx.fillRect(res.windowWidth * 0.1, 30, res.windowWidth*0.8, res.windowHeight*0.3); ctx.clip(); ctx.drawImage(tempFilePaths,res.windowWidth * 0.23, 0, 200, 300) ctx.draw();报错如下,编译器没有报错 但是真机实验报错

相似问题