在不同的手机绘制出来样式会串(尤其在性能比较低的Andrio机)
ctx.draw(true, () => {
setTimeout(() => {
wx.canvasToTempFilePath({
canvasId: 'poster',
success(res) {
that.filePath = res.tempFilePath
}
})
}, 500)
})
建议直接使用封装好的库
painter