1
a1369521908 67 天前
尼玛 还好我取消的快
|
![]() |
2
eason1874 67 天前
blob 链接相当于浏览器内的临时文件链接,blob 有个接口可以读取原始二进制数据,你看下文档就知道了
|
![]() |
3
Xusually 67 天前 via iPhone
xxx dot com……
op 不要用 xxx 来举例了 😭 |
![]() |
4
storyxc 67 天前
还好我看了回复,没点链接😄
|
![]() |
5
vone 67 天前
牛逼
|
6
okakuyang 67 天前
//直接下载
let a = document.createElement('a') a.href = "blob://xxxxx" a.setAttribute("download","xxx.jpg") document.body.append(a) a.click() //在脚本中处理 fetch("blob://xxxx") .then(res=>res.blob()) .then(blob=>{ return new File( [blob] , "xxx.jpg" , { type:"image/jpeg"} ) }) .then(file=>{ // do some thing as file }) |