pdf预览问题
各位大神们 我在文档复制代码
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页面还需要些什么吗? 为什么我这边输出的是打开文档成功 但页面并没有看到任何东西呢? 在线等大神们指导
