摘要: 使用jszip这个项目实现的:https://github.com/Stuk/jszip FileSaver.js项目地址是:https://github.com/eligrey/FileSaver.js/ ``` // 初始化一个zip打包对象 var zip = new JSZip(); // 阅读全文
posted @ 2023-06-21 10:38 Xupd 阅读(921) 评论(0) 推荐(0)
摘要: <input type="file" id="choose" accept="application/pdf"> var file = document.getElementById('choose') file.onchange = function () { var reader = new F 阅读全文
posted @ 2020-10-22 14:41 Xupd 阅读(14) 评论(0) 推荐(0)