window.webkitURL.createObjectURL
ƒ createObjectURL() { [native code] }
file
Event {isTrusted: true, type: "change", target: input, currentTarget: input, eventPhase: 2, …}
file.path[0].files[0]
File {name: "测试条形码2.jpg", lastModified: 1623137188713, lastModifiedDate: Tue Jun 08 2021 15:26:28 GMT+0800 (中国标准时间), webkitRelativePath: "", size: 6012, …}
window.webkitURL.createObjectURL(file.path[0].files[0])
"blob:http://170.0.32.229:8778/dd8117c8-8a44-4ad4-8efd-1cdf6df3fbf2"
js上传文件通过 浏览器获取文件地址 blob 回显
最新推荐文章于 2023-07-29 20:30:59 发布