小程序无法使用web-view打开pdf文件吗?

小程序 文章 2020-08-05 16:41 875 0 全屏看文

AI助手支持GPT4.0

小程序无法使用web-view打开pdf文件吗?Can't the applet use web-view to open the pdf file?

小程序无法使用web-view打开pdf文件吗?

手机:安卓honor v20

微信版本号:7.0.17

开发者工具可以使用web-view打开pdf文件,真机上不行,业务域名已配置;

Mobile phone: Android Android V20 wechat version number: 7.0.17 developer tools can use web view to open PDF files, but not on the real machine. The business domain name has been configured;

回答:

Admin²⁰²⁰:

H5里面预览pdf解决方案用pdf.js方案。百度下就懂了。

They Say:

真机不行就不行了

July:好的,谢谢
จุ๊บ:

小程序本身 有方法可以打开文档的。贴下你的代码

July:好的,但是其实我的业务场景是嵌套的h5页面里有需要打开pdf的😭

-EOF-

AI助手支持GPT4.0