wx.canvasToTempFilePath({
canvasId: 'firstCanvas',
success: function (res) {
console.log(res.tempFilePath);
that.setData({
shareImgUrl:res.tempFilePath,
isShow:true
});
},
fail: function (res) {
console.log(res);
},
complete: function (res) {
console.log(res);
wx.hideLoading();
}
});
微信6.5.22的bug