javascript来判断客户端文件的大小,js判断上传文件大小,js获得文件长度
?http://heisetoufa.iteye.com/blog/227809?第二种方法:<script type="text/javascript"> function getFileSize(filePath) { var image=new Image(); image.dynsrc=filePath; alert(image.fileSize); } </script>?
?http://heisetoufa.iteye.com/blog/227809
?
第二种方法:
<script type="text/javascript"> function getFileSize(filePath) { var image=new Image(); image.dynsrc=filePath; alert(image.fileSize); } </script>