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を生成します
おすすめ
転載: blog.csdn.net/tyjlearning/article/details/108777309
ランキング