去除重複對象
for(var i =0; i<fileList.length; i++){ if(!this.obj[fileList[i].name]){ this.fileList.push(fileList[i]); this.obj[fileList[i].name] = true; } }
去除重複屬性
var arr=[]
for(var i =0; i<fileList.length; i++){
if(this.arr.indexOf(fileList[i]===-1)){
arr.push(fileList[i])
}
}