download link:
Link: https://pan.baidu.com/s/1c6Y1ovI7yLjI9nExNo5PXAPassword : y3z6
Default pdfshow\web
If you want to load pdf files in other directories
The file path where pdf.js is located + the file path that needs to be displayed
let htmlStr="<Iframe src='./pdfshow/web/viewer.html?file="+ducumentPath+"' style='width:100%;height:100%'></Iframe>"; $("The id or class attribute of the display location is required").html(htmlStr);