Because the courseware of institutional teachers is not allowed to be downloaded and can only be previewed, the interface of uniAPP official documents cannot be used
So I see some can only use the PDF document. Js loading PDF file in your web page to use this file need to official website to download website address for mozilla. Making. IO/PDF/js file contains the build and web usage see below picture 2
When I first started writing the demo, I thought it was very difficult to adjust the interface. It was really, really, really easy because I didn’t need to deal with parameters or anything. I just used the address passed from the background and didn’t need to do anything
The open PDF file is
It is normal to open it in app preview, but it may need to configure the domain name to display cross-domain on H5 PC
I didn’t need the H5 and I didn’t care