if(this.all.length > 0){
for(var k=0; k<this.all.length; k++){
alert(this.all[k]); // it alerts [object FileList]
var file = this.all[k];
this._uploader(file,0);
}
}
最佳答案
if(this.all.length > 0){
for(var k=0, len = this.all.length; k < len; k++){
console.dir(this.all[k]); // will iterate over the properties of each [object FileList] in the console
var file = this.all[k];
this._uploader(file,0);
}
}
关于javascript - 是否可以在JavaScript中显示[object FileList]的内容?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15019344/