IE9 array does not support indexOf

后端 未结 3 920
青春惊慌失措
青春惊慌失措 2021-01-11 23:57

Based on http://ie.microsoft.com/testdrive/HTML5/ECMAScript5Array/Default.html, I thought IE9 supports indexOf in array but the following breaks. Any idea why?



        
3条回答
  •  无人及你
    2021-01-12 00:25

    your code looks right and this compatibility table shows that IE9 should support indexOf() and checks your actual browser for compatibility.

    try to open it and take a look at your result. maybe you're running you IE in compatibility mode for IE7/8 or something else.

    this jsfiddle works in my IE9 - please try that, too.

提交回复
热议问题