无法让小伙子在我的小提琴中工作

时间:2014-05-19 05:49:44

标签: javascript typeahead.js

我正在努力实现我的小提琴Twitter's typeahead plugin。但是我收到了一个错误:

Uncaught TypeError: undefined is not a function

这个错误就在我提到ttAdapter()的行上。但我在the plugin中已经提到了ttAdapter()

jsFiddle

我错过了什么?

1 个答案:

答案 0 :(得分:1)

您缺少Bloodhound建议集成,必须使用.initialize()进行实例化。

http://jsfiddle.net/Ca4rq/2/应该是您追求的目标。 改编自https://twitter.github.io/typeahead.js/examples/