解决部分机型浏览器 使用pdf.js 出现 undefined is not an object(evaluating ‘response.body.getReader‘) 报错问题
问题undefinedisnotanobject(evaluating‘response.body.getReader’)参考小王子的笔记本的技术博客仔细分析源码后发现,PDFjs的getDocument方法不仅可以接收URL作为参数,还可以接收多种类型:而fetch方法返回的Response对象恰恰拥有arrayBuffer方法,可以将数据转为ArrayBuffer对象解决PDF.getDocu