blob类型转换

242 阅读1分钟
1. blob对象转为url地址,直接访问

let url = window.URL.createObjectURL(blobObj);
1. blob对象转为file对象
    let fileParam = new window.File([rsp], file.name, {
      type: file.type,
    });
    console.log(fileParam);