2017-02-13 11 views
0

で働いていない、これは正常に動作します:Data.ForEachは、私がデータ配列をループにしようとしているIE

data.forEach((entry) => { 
    if(entry[1]) { 
     window.optionsAv = 1; 
     window.optionsAmnt = window.optionsAmnt + 1; 

     $('#timeswrap').show(); 
     $('#tijden').append("<option class='single-tijd' data-optieId='" + entry[3] + "'>" + entry[0] + "</option>"); 
    } else { 
    } 
}) 

をしかし、Internet Explorerで動作するようには思えません。 もっと良い解決策は何でしょうか?

+1

正確にはどのようなエラーですか?どのバージョンのInternet Explorerについて話していますか? IE8とIE Edgeの間には大きな違いがあります。 – Pointy

+0

どのバージョンのIE? – Laazo

+0

http://caniuse.com/#search=foreach –

答えて

関連する問題