function getObjectURL(file) {
var url = null ;
if (window.createObjectURL!=undefined) {
url = window.createObjectURL(file) ;
} else if (window.URL!=undefined) {
url = window.URL.createObjectURL(file) ;
} else if (window.webkitURL!=undefined) {
url = window.webkitURL.createObjectURL(file) ;
}
return url ;
}
JS 预览本地文件生成浏览器可识别的URL
最新推荐文章于 2024-06-24 10:55:49 发布
关键词由CSDN通过智能技术生成