uniapp 离线打包Android显示pdf 下载后预览,在onload函数中执行以下代码 // #ifdef APP-PLUS uni.downloadFile({ url: "你的线上pdf文件地址", success: res => { console.log(res) if (res.statusCode === 200) { // 预览pdf文件 uni.openDocument({ filePath: res.tempFilePath, showMenu: true, }) } } }) // #endif