WeChat Open Platform

Mini Programs Documentation

wx.createCanvasContext(canvasId)

Definition

Creates canvas drawing context (specifies canvasId)

Tip: If a canvasId needs to be specified, this drawing context only applies to the corresponding <canvas/>

Parameters

Parameter Type Description
canvasId String Indicated by the canvas, imports the canvas-id defined in <canvas/>