3357关注11361浏览
canvas.toTempFilePath({
x: 0,
y: 0,
width: canvas.width,
height: canvas.height,
destWidth: canvas.width,
destHeight: canvas.height,
success (res) {
console.log(res);
//不能用 :"saveFile:fail tempFilePath file not exist"
const fs = wx.getFileSystemManager();
fs.saveFile({
tempFilePath: res.tempFilePath, // 传入一个本地临时文件路径
success(res) {
console.log(res.savedFilePath) // res.savedFilePath 为一个本地缓存文件路径
},
fail(res){
 
-
至过去的我
2044人对此回答表示赞同
我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>