我使用Pdf.js,我从网络服务(this.attachmentSource)获取base64文件,当我想添加var iframe = "<iframe width=800 height=550 src='" + this.attachmentSource + "' > </iframe>“,对于google chrome中的一些pdf文件,我得到的iframe为空,但在Mozila中一切正常,谁能解释这个谜团?
var iframe = "<iframe width=800 height=550 src='" + this.attachmentSource + "' > </iframe>
javascript php google-chrome pdf.js
google-chrome ×1
javascript ×1
pdf.js ×1
php ×1