<input type="file" id="file1" />
<script>
//将文件大小由字节转化成M(兆)数
var size = $("#file1")[0].files[0].size/1024/1024;
</script>
<input type="file" id="file1" />
<script>
//将文件大小由字节转化成M(兆)数
var size = $("#file1")[0].files[0].size/1024/1024;
</script>