var url = null;
var fileObj = document.getElementById("aptitude").files[0];
if (window.createObjcectURL != undefined) {
url = window.createOjcectURL(_file);
} else if (window.URL != undefined) {
url = window.URL.createObjectURL(file);
} else if (window.webkitURL != undefined) {
url = window.webkitURL.createObjectURL(_file);
}
获取File URL路径
最新推荐文章于 2024-01-26 17:59:35 发布