Il faut que IE8 ne prenne pas en charge l'index. Tous écrivent une méthode pour Loop pour déterminer s'il existe et retourner vrai faux
fonction isCon (arr, val) {for (var i = 0; i <arr.length; i ++) {if (arr [i] == val) return true; } return false; }Ajoutez cette méthode dans JS et appelez-la à l'appel
window.onload = function () {var arr = new Array (1,2,3,2,4,2,5,6,7,2,4,3,18,12,41,87); alerte (iSCon (arr, 8)); }