绘制了俩张网络图片,只显示了一张
wx.getImageInfo({
src: path1,
success: function (res) {
console.log('商品图片本地图片', res)
context.drawImage(res.path, 15, 230, 345, 200);
context.draw(false, function (e) {
console.log(e,'draw callback')
})
}
})
wx.getImageInfo({
src: path2,
success: function (res) {
console.log('头像本地图片', res.path)
//绘制头像
context.drawImage(res.path, 15, 580, 52, 52)
}
})
第二张你没调用draw