wx.downloadFile和wx.saveFile下载rar压缩包后缀名
调用wx.downloadFile wx.saveFile 下载保存rar压缩包
机型:小米note3
怎么查找下载之后的文件???
wx.downloadFile({
url: xiazai_read,
success: function(res) {
console.log(res)
var tempFilePath = res.tempFilePath;
wx.saveFile({
tempFilePath: tempFilePath,
success: function(res) {
console.log(res)
var savedFilePath = res.savedFilePath;
console.log(“保存在:” + savedFilePath)
}
})
}
})