1 回复
fang36
fang361 楼5 年前

canvas的 const ctx = wx.createCanvasContext(‘game’)  应该要放到Page里面哦。试试这个片段:https://developers.weixin.qq.com/s/Ro6rUpmB7Y4O