📜  从文件中获取 blob javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:01.328000             🧑  作者: Mango

代码示例1
Modern solution:

let blob = await fetch(url).then(r => r.blob());
The url can be an object url or a normal url.