我用的是这个代码:
$('.ajax-typeahead').typeahead({
source: function(query, process) {
return $.ajax({
url: $(this)[0].$element.data('link'),
type: 'get',
data: {q: query},
dataType: 'json',
success: function(res) {
return process(res);
}
});
}
});当我在输入字段中输入某些内容时,我得到:
bootstrap.min.js (第1行) TypeError: a未定义
有人知道什么时候出了问题吗?
编辑:我更新到最新版本2.3,现在一切正常!
发布于 2013-02-21 07:36:11
我更新到了最新版本2.3,现在一切都正常了!
https://stackoverflow.com/questions/14982959
复制相似问题