前端 js issuejs问题合集

mustang2012 · May 28, 2020 · 4 hits

URL.createObjectURL

目前是实验性功能, 浏览器仅提供部分支持
使用FileReader.readAsDataURL代替:

1
2
3
4
5
6
function (file){
return new Promise(res => {
reader.onload = function () { res(this.result); }
reader.readAsDataURL(file);
})
}
No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.