0

JavaScript を使用してファイル サイズを取得するか、一部のブラウザがサポートされていない場合はエラーをキャッチします。IE 10 のサポート、つまり 9、8 ... はサポート
していません。使用していますが、機能していません。どうすればそれを行うことができますか

<meta http-equiv="X-UA-Compatible" content="IE=edge"><!-- not working -->
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"><!-- not working -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" ><!-- not working -->

<input type="file" id="myFile" />
if (document.getElementById('myFile').files[0]){
     // do something
} else {// can't catch to print 
   alert('don't support');
}
4

0 に答える 0