js判断上传的附件大小 var filePath= document.all.upfile.value; var fso, f, s; fso = new ActiveXObject("Scripting.FileSystemObject");f = fso.GetFile(filePath);alert(f.Size)