<input type="file" id="file1" /> <script> var size = $("#file1")[0].files[0].size; </script> 转载于:https://www.cnblogs.com/sgciviolence/p/5608434.html