File对象转Blob URL
File 对象
Blob URL
转换代码
const file = event.target.files[0] const fileType = file.type const blob = new Blob([file], { type: fileType || 'application/*' }) const blobUrl = window.URL.createObjectURL(blob)
const file = event.target.files[0] const fileType = file.type const blob = new Blob([file], { type: fileType || 'application/*' }) const blobUrl = window.URL.createObjectURL(blob)