微信小程序中文件的保存位置
wx.downloadFile({
url: url,
success: function (res) {
let path = res.tempFilePath
wx.saveFile({
tempFilePath: path,
success(res) {
var savedFilePath = res.savedFilePath;
},
以上代码下载文件保存到本地,
在电脑上的保存位置是C:\Users\Administrator\AppData\Local\微信web开发者工具\User Data\WeappFileSystem\o6zAJszQ6Ob4xM-vP7nrv0ozOw-U\wxe371b77dd8e92520\store
在手机上呢,找不阿