lau*_*kok 10 php html5 internet-explorer file-upload ajax-upload
为什么IE 9 input type="file" multiple不像其他浏览器那样支持呢?
<form action="#" method="post" enctype="multipart/form-data">
<input type="file" multiple name="uploads[]" />
<input type="submit"/>
</form>
Run Code Online (Sandbox Code Playgroud)
如何让它在IE上运行?
IE应根据此doc支持多个:
http://msdn.microsoft.com/en-us/library/ie/hh772307(v=vs.85).aspx
但即便如此,他们自己的例子对我来说也不适用于IE9 ..
<input type="file" multiple="multiple" onchange="for (var i = 0; i < this.files.length; i++) { document.write(this.files[i].name ) };" />
Run Code Online (Sandbox Code Playgroud)
触发onchange事件时,IE中的HTMLInputElement似乎不存在files属性,而在Chrome中则为.
更新:这个doc显然不适用于IE9.据说IE 10支持File API.我们希望它很快就会发布.
| 归档时间: |
|
| 查看次数: |
19339 次 |
| 最近记录: |