下载地址:
链接:https://pan.baidu.com/s/1c6Y1ovI7yLjI9nExNo5PXA 密码:y3z6
默认pdfshow\web
如果想加载其他目录下的pdf文件
pdf.js所在的文件路径+需要显示的文件路径
let htmlStr="<Iframe src='./pdfshow/web/viewer.html?file="+ducumentPath+"' style='width:100%;height:100%'></Iframe>"; $("需要显示位置的id或者class属性").html(htmlStr);