ctx.draw() 有木有回调
wx.getImageInfo({
src: 'cloud://playwith-pw1101.706c-playwith-pw1101/spreader/img2.jpg',
success: e => {
ctx2.drawImage(e.path, 0, 0, width, height)
ctx2.draw(true)
wx.getImageInfo({
src: img0,
success: r => {
ctx2.drawImage(r.path, 120, 382, 92, 92)
ctx2.draw(true)
it.setCreateImg2()
}})}})
我 ctx2.draw(true) 之后调用了 it.setCreateImg2() 去 wx.canvasToTempFilePath 结果是画布画到一半的 加个延时函数后才显示完整的画 这个ctx2.draw(true)有没有回调方法
本文网址:http://www.91bianli.com/weixinxiaochengxu/39684.html