如何在Ie9中查找Javascript文件的大小? [英] How Do I Find Size Of A File In Javascript In Ie9?
本文介绍了如何在Ie9中查找Javascript文件的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用
I am using
var fld=document.getElementByID('file');
var size = fld.files[0].size;
IE9不支持。
有人可以推荐任何替代方案吗?
It is not supported in IE9.
Can someone suggest any alternative??
推荐答案
检查以下网址
http://www.jquerybyexample.net/2012/03/how-to-check-file-size-before-uploading.html [ ^ ] < br $> b $ b
http://www.dotnet-tricks.com/Tutorial/jquery/HHLN180712-Get-file-size-before-upload-using-jquery.html [ ^ ]
http://www.aspsnippets.com/Articles/Check-Validate-File-Image-Size-before-upload-using-JavaScript-和-jQuery.aspx [ ^ ]
Check the following urls
http://www.jquerybyexample.net/2012/03/how-to-check-file-size-before-uploading.html[^]
http://www.dotnet-tricks.com/Tutorial/jquery/HHLN180712-Get-file-size-before-upload-using-jquery.html[^]
http://www.aspsnippets.com/Articles/Check-Validate-File-Image-Size-before-upload-using-JavaScript-and-jQuery.aspx[^]
这篇关于如何在Ie9中查找Javascript文件的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文