input|fileオブジェクトに関する簡単なjavescriptがあります。
var upfiles=new Array();
function addfile(files){
upfiles.push(files);
alert(upfiles[0].name); //undefined
alert(files[0].name); //can get file name
upfiles[0].prop("name"); //can get file name
alert(upfiles.length); //1
}
upfiles[0].name
仕事中に、なぜ私に未定義のリターンしか与えられないのかわかりませんupfiles[i]).prop("name")
。2つの方法の違いは?