我是这样写的: const ctx = wx.createCanvasContext(‘myCanvas’) ctx.moveTo(45,10) ctx.lineTo(290, 10) 但是不同手机上长度不同