javascript
<html>
<input type="file" name="file1" >
<script language="JavaScript">
<!--
function ShowSize(files)
{
var fso,f;
fso=new ActiveXObject("Scripting.FileSystemObject");
f=fso.GetFile(files);
alert(f.size+" Bytes");
}
//-->
</script>
</html>
时间: 2024-10-29 21:26:17