drawImage
onLoad: function () {
var context = wx.createCanvasContext(‘myCanvas’)
var baizi = ‘http://zkres.myzaker.com/data/ads_web/share_pic.png’;
wx.getImageInfo({
src: baizi,
success: function (res) {
console.log(res.path);
context.drawImage(res.path, 0, 0, 150, 100)
context.draw();
},
fail: function (e) {
console.log(e);
}
})
},
开发工具好用,真机为什么不好用呢 ,真机打开调试又好用,这是为什么