wx.canvasToTempFilePath真机测试下不行

发布于 6 年前作者 qiang8419252 次浏览最后编辑 6 年前来自 ask

同样的代码昨天试还好好的,今天试就不行了,电脑可以下载

wx.canvasToTempFilePath({

canvasId: ‘firstCanvas’,

success: function success(res) {

console.log(res)

wx.saveImageToPhotosAlbum({

filePath: res.tempFilePath,

success: function success(res) {

wx.showToast({

title: ‘保存成功’,

duration: 1500,

})

},

complete: function fail(e) {

console.log(e.errMsg);

}

});

},

complete: function complete(e) {

console.log(e.errMsg);

}

});

2 回复
hantao
hantao1 楼6 年前

同问

wchang
wchang2 楼4 年前

同问!