1
所以我遵循的異步上傳文件的一些教程。該項目運行良好的Mozilla Firefox和Chrome,但是當我在Internet上運行它Explorer 9的它提供了一個錯誤:對象爲空或未定義的錯誤在IE9
0x800a138f - Microsoft JScript runtime error: Unable to get value of the property 'length': object is null or undefined
這裏是它顯示錯誤:
<script type="text/javascript">
$(document).ready(function() {
$("#btnUpload").click(OnUpload);
});
function OnUpload(evt) {
var files = $("#fileUpload").get(0).files;
if (files.length > 0) { <---//Error
...
我已經嘗試一些修復,例如將其添加到頭標記
<head>
<meta http-equiv="X-UA-Compatible" content="IE=9" >
這對我不起作用。 所以幫助將不勝感激。
http://stackoverflow.com/q/14845895/3639582文件API不支持的
2015-04-03 05:49:48