当前位置:网站首页>Wechat applet - wechat applet browsing PDF files
Wechat applet - wechat applet browsing PDF files
2022-07-28 08:37:00 【In Heaven】
Wechat applet ---- Wechat applet browsing pdf file
explain : adopt wx.downloadFile,wx.openDocumen To open pdf file . Just in js Just operate .
HTTP.Config.Request('source/reportinfo', 'POST', {
reportId: id })
.then(function (i) {
let datas = i.data;
/************************/
wx.downloadFile({
url: datas, // To preview PDF The address of
success: function (res) {
if (res.statusCode === 200) {
// success
var Path = res.tempFilePath // The temporary address of the returned file , Used to open the local preview later
wx.openDocument({
filePath: Path, // The file path to open
success: function (res) {
console.log(' open PDF success ');
}
})
}
},
fail: function (res) {
console.log(res);
}
})
边栏推荐
- Simple use of unity queue
- feign 调用
- See how Google uses pre training weights in target detection tasks | CVPR 2022
- How does QT delete all controls in a layout?
- Pyspark writes data to iceberg
- Redis 基本知识,快来回顾一下
- PHP基础知识 - PHP 使用 MySQLI
- Js继承方法
- leetcode/排序数组中两个数字之和
- Prescan quick start to master the track editing path of Lecture 16
猜你喜欢

See how Google uses pre training weights in target detection tasks | CVPR 2022

GB/T 41479-2022信息安全技术 网络数据处理安全要求 导图概览

机器学习如何做到疫情可视化——疫情数据分析与预测实战
![[Qt5] small software with 5 people randomly selected from the bid evaluation expert base](/img/ca/9f6bd6af45e2113c050edf3a65aaf2.png)
[Qt5] small software with 5 people randomly selected from the bid evaluation expert base

CAT1 4G+以太网开发板232数据通过4G模块TCP发到服务器

5张图告诉你:同样是职场人,差距怎么这么大?

SQL注入 ----前置基础

Day112.尚医通:手机验证码登录功能

No super high-rise buildings | new regulations: what information does it reveal that no new buildings above 500 meters should be built?

2022 Niuke multi school second problem solving Report
随机推荐
leetcode刷题,我推荐B站这个妹子学霸的视频
2021-07-02
sql server时间字段排序
[mindspire YiDianTong robot-01] you may have seen many Knowledge Q & A robots, but this is a little different
Use of namespaces
Prescan quick start to master the road elements of lecture 15
数字签名和CA证书
How CI framework integrates Smarty templates
bash-shell 免交互
How to write a JMeter script common to the test team
一键开关机电路
Can‘t connect to server on ‘IP‘ (60)
博客搭建九:hugo添加搜索功能
How does QT delete all controls in a layout?
jquey的基础语法
No super high-rise buildings | new regulations: what information does it reveal that no new buildings above 500 meters should be built?
解决EMC、EMI传导干扰的八大方法
Usage of qgroupbox
pyflink连接iceberg 实践
招贤纳士,GBASE高端人才招募进行中