微信小程序 框架
微信小程序 WXML
表单组件
微信小程序导航
地图
媒体
绘图
开放接口
工具
保存当前的绘图上下文。
恢复之前保存的绘图上下文。
const ctx = wx.createCanvasContext('myCanvas')// save the default fill stylectx.save()
ctx.setFillStyle('red')
ctx.fillRect(10, 10, 150, 100)// restore to the previous saved statectx.restore()
ctx.fillRect(50, 50, 150, 100)
ctx.draw()
