3 回复
let ctx1 = wx.createCanvasContext(‘tm1’)
ctx1.beginPath()
ctx1.moveTo(0, 100)
ctx1.lineTo(300, 100)
ctx1.moveTo(150, 0)
ctx1.lineTo(150, 200)
ctx1.stroke()
ctx1.beginPath()
ctx1.arc(150, 100, 80, 0, 2 * Math.PI)
ctx1.stroke()
ctx1.draw()
https://developers.weixin.qq.com/miniprogram/dev/api/canvas/CanvasContext.stroke.html