<script>
 function getFileSize() {
  var filePath = document.getElementById("file").value;
  var fso = new ActiveXObject("Scripting.FileSystemObject");
  var file = fso.getFile(filePath); 
  alert(fso.FileExists(filePath));
  alert(file.size);
 }
</script>
<body>
 <input type="file" name="file" >
</body>

相关文章:

  • 2021-12-29
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
猜你喜欢
  • 2022-12-23
  • 2021-06-29
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
相关资源
相似解决方案