// 下载文件
downloadFile(url) {
uni.downloadFile({
url: url,
success: function (res) {
var filePath = res.tempFilePath
uni.openDocument({
filePath: filePath,
showMenu: true,
success: function (res) {
console.log('打开文档成功')
}
})
}
})
},
uniapp下载文件
猜你喜欢
转载自blog.csdn.net/weixin_44801790/article/details/131292980
今日推荐
周排行