1

我正在使用 Twitters typeahead ( http://twitter.github.io/typeahead.js )

它工作正常,除了他过滤大小写敏感并且我希望过滤器不区分大小写。

我该如何实施?

这是我的代码:

$('.typeahead').typeahead({
    name: 'Title',
    remote: base_url + '/Activity/Components/Phrase/Home/SearchCharacter?q=%QUERY',
    valueKey: 'Title',
    limit: 10 
}).bind('typeahead:selected', function (obj, char) {
    $(this).attr('data-charid', char.ID);
});

谢谢!

4

1 回答 1

2

只需让您的代码运行在/Activity/Components/Phrase/Home/SearchCharacter不区分大小写的搜索中。

于 2013-11-15T10:03:45.397 回答