我要每天进步多一点系列: javascript:获取对象属性的方法
var temp=[];
for (var key in document.getElementById("upload").files[0]){
var a ="var c= document.getElementById('upload')."+ key;
try { eval(a) }
catch (e) {
var a ="var c= document.getElementById('upload')."+ key +"()" ;
} ; temp.push(key+";"+c);
}
alert(temp.join("\n"));