javascript|上传<script type="text/javascript" defer>
function crobj()
{
var obj=document.getElementById("path");
var fso=new ActiveXObject("Scripting.FileSystemObject");
var opath=fso.GetFile(obj.value);
var s="文件大小为"+opath.size+"bytes";
alert(s);
}
</script>
<input type="file" id="path" />
<input type="button" value="提交" />
如何使用javascript限制文件上传大小
80酷酷网 80kuku.com