wx.canvasToTempFilePath生成的是一张纯黑色的图片
wx.canvasToTempFilePath({
canvasId: ‘mycanvas’,
success: function (res) {
var tempFilePath = res.tempFilePath;
console.log(tempFilePath)
wx.saveImageToPhotosAlbum({
filePath: tempFilePath,
})
},
fail: function (res) {
console.log(res);
}
});
canvas生成图片再保存相册,走的都success方法,生成的却是一张纯黑色的图片