惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

博客园 - 春风得意之时

gif动态图制作 2025年起,cnpm使用淘宝镜像 el-table合并相同数据的行 area.js CSS 实现防止按钮重复点击 JS高级用法-清空数组 能找到相同 id 属性值的数据则进入判断--JS JS slice(0);克隆数组 JS map 三种不同的写法返回值 控制一行显示多少个Item Uview里面公用的css类 如何形象地解释 JavaScript 中 map、foreach、reduce 间的区别? 通过bat启动jar的命令 ES6语法解决现在笔记本屏幕设置为125% 150%导致页面缩放的问题 在线版冰墩墩 nginx带有Java(前后分离)和PHP环境的配置 maven打包命令 js reduce函数基本知识和应用 iframe里面获取父级页面URL参数
el-upload file转blob 用于预览pdf.js和下载文件
春风得意之时 · 2023-09-16 · via 博客园 - 春风得意之时
   // file转blob
    fileToBlob(file, callback) {
      const type = file.type;
      const reader = new FileReader();
      reader.onload = (evt) => {
        const blob = new Blob([evt.target.result], { type });
        if (typeof callback === "function") {
          callback(blob);
        } else {
          console.log("我是 blob:", blob);
        }
      };
      reader.readAsDataURL(file);
    },
 
    analyzeZip(file) {
      const _file = file.raw;
      this.fileToBlob(_file, async (blob) => {
        console.log(blob);
      
      });