pdf预览问题
发布于 6 年前 作者 yinfang 2905 次浏览 来自 问答

各位大神们 我在文档复制代码

wx.downloadFile({

url: https://cynthianc.github.io/images/123.pdf,

success: function (res) {

var filePath = res.tempFilePath;

console.log(filePath);

wx.openDocument({

filePath: filePath,

success: function (res) {

console.log(res);

console.log(‘打开文档成功’)

}

})

}

})

wxml页面还需要些什么吗?  为什么我这边输出的是打开文档成功 但页面并没有看到任何东西呢? 在线等大神们指导

2 回复

sorry 解决了 开发者工具更新之后就没问题了

你好,我这边测试是没有问题的,麻烦提供出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部