我试图这样做,但当我把错误带入内容编辑的网页时,我却继续这样做。
<script type="text/javascript">
var FSO = new ActiveXObject("Scripting.FileSystemObject");
var input_File = document.aspnetForm.ctl00_PlaceHolderMain_ctl01_ctl02_InputFile.value;
var uploaded_file = FSO.getFile(input_File);
var file_size = uploaded_file.size; //size in bytes
alert(file_size + " bytes");
</script>
Message: Automation server can t create object