全栈自培养 ---- 微信小程序实现上传保存图片-保存文件
最编程
2024-03-29 12:57:22
...
async saveAvatar() {
uni.downloadFile({
url: '......',
success: (res) => {
if (res.statusCode === 200) {
uni.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
success: function () {
uni.showToast({
title: "保存成功"
});
},
fail: function () {
uni.showToast({
title: "保存失败",
icon: "none"
});
}
});
}
}
})
},
上一篇: 不得不推荐的三部密室逃脱电影
下一篇: 国内 VR 体验馆发展现状及未来展望