uni.downloadFile({
url:你自己的地址,
success: function (res) {
if (res.statusCode == 200) {
const filePath = res.tempFilePath;
uni.openDocument({
filePath,
showMenu: true,
success: function (res) {
}
})
}
}
})
uniapp将后端返回的网址或图片直接在手机上进行打开操作
最新推荐文章于 2024-08-22 10:22:49 发布