Vue pdfJs 預覽PDF、圖片

步驟如下: 1.下載pdfJs到本地(官網下載地址),放到項目根目錄下的static文件夾內,將文件命名爲pdfJs。 如下圖   2. 使用iframe打開 <iframe id="pdfPlayer" src="URL"  frameborder="0" width="100%" height="600px"></iframe> 或者:<iframe id="pdfPlayer"   :src
相關文章
相關標籤/搜索