06/22: Javascript > Array.indexOf はInternet Explorerでは動かない。
Category: Web dev
Posted by: hajime osako
Array.indexOf in Internet Explorer - soledad penad�s
if(!Array.indexOf){
Array.prototype.indexOf = function(obj){
for(var i=0; i<this.length; i++){
if(this[i]==obj){
return i;
}
}
return -1;
}
}