WeChat applet API wx.createCanvasContext(canvasId) (drawing context)


wx.createCanvasContext(canvasId)


Definition

Create canvas drawing context (specify canvasId)

Tip: Need to specify canvasId , the drawing context only acts on the corresponding <canvas/>

parameter

##parameter TypeDescriptioncanvasIdString Canvas representation, the incoming definition is in
<canvas/>’s canvas-id