Javascript Slickgrid过滤器在IE中不工作

Javascript Slickgrid过滤器在IE中不工作,javascript,slickgrid,Javascript,Slickgrid,我刚刚在完成了我的第一个SlickGrid实现 不幸的是,我一直收到报告说过滤器在IE上不起作用。我想知道IE上的SlickGrid过滤是否存在已知问题。下面是令人不快的代码: // Define search filter (currently searches name, birth place, and death place) function myFilter(item) { var searchWords = getWords(searchString); var searchFie

我刚刚在完成了我的第一个SlickGrid实现

不幸的是,我一直收到报告说过滤器在IE上不起作用。我想知道IE上的SlickGrid过滤是否存在已知问题。下面是令人不快的代码:

// Define search filter (currently searches name, birth place, and death place)
function myFilter(item) {
var searchWords = getWords(searchString);
var searchFields = ["name","birthPlace","deathPlace", "birthDate", "deathDate"];
if (searchWords){
    // Go through each of the words in the search string
    for (j in searchWords){
        var itemFound = false;
        searchWord = searchWords[j].toUpperCase();
        // Make sure that the word is in at least one of the search fields.
        for (i in searchFields){
            if (item[searchFields[i]].toUpperCase().indexOf(searchWord) != -1){
                itemFound = true;
            }
        }
        if (itemFound === false){
            return false;
        }
    }
}
    return true;
}

// Get all of the words in a search string
function getWords(wordString){
    pattern = /[^, ]+/g;
    wordArray = wordString.match(pattern);
    return wordArray;
} 

非常感谢

所以,我知道问题出在我的for循环上。我想IE需要这种格式的循环

for (variable=startvalue;variable<=endvalue;variable=variable+increment)

因为不能循环通过这样的数组而破坏了东西。哎呀。:)

在Chrome中似乎根本不起作用。没有报告JS错误。抱歉-这只是代码的一小部分。
for (j in searchWords)