一、创建Canvas var canvas = wx.createCanvas(); 二、在Canvas上进行绘制 1、绘制矩形 var context = canvas.getContext(‘2d’); context.fillStyle = ‘red’; c