twitter-bootstrap 2.0.3版本是否支持typeahead功能支持远程数据源?
打字头功能的链接 http://twitter.github.com/bootstrap/javascript.html#typeahead
最佳答案
你试过吗:
$('.typeahead').typeahead({
source: function (query, typeahead) {
return $.post('/typeahead', { query: query }, function (data) {
return typeahead.process(data);
});
}
});
关于javascript - twitter bootstrap typeahead 是否支持远程数据源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10680120/