微信小程序手机端不开调试canvas无法正常绘制,而开发者工具和真机调试都正常?求助!
[图片][图片] this.ctx = wx.createCanvasContext('myCanvas'); this.ctx.font = '20px SimSun'; this.ctx.fillStyle = '#704AF2'; this.ctx.fillText('AI集合站·您身边的AI助手!', 60, 40); this.ctx.draw() // this.ctx.drawImage(ewmfilePath, 50, 60, 180, 180); this.ctx.font = '14px SimSun'; this.ctx.fillStyle = '#00007f'; this.ctx.fillText('(扫一扫或长按上方二维码进入)', 50, 280); this.ctx.draw(true); this.flag = true; uni.hideLoading()