-1
如何获得上传使用JavaScript或jQuery的文件大小和使用的代码应适用整个浏览器(IE,Chrome浏览器,火狐...等)上传的文件大小错误在IE浏览器
<input id="id_file" type="file" class="attachefile" name="file" >
$("#id_file").live('change', function(){
var size = $(this)[0].files[0].size;
alert(size)
});
此代码不能正常工作IE浏览器
界定 “不工作”。任何错误?哪个IE版本? – Raptor
没有错误的所有IE版本的 – sebastian
[使用jQuery检查文件输入大小]的可能重复(http://stackoverflow.com/questions/1601455/check-file-input-size-with-jquery) – EricLaw