方法:1、利用ActiveX控件,语法“var f=new ActiveXObject("Scripting.FileSystemObject");f.GetFile(filePath).size”;2、利用img的fi