1
我试图设置源入引导预输入,但我发现了以下错误:Twitter的引导预输入2.1.1不能设置功能在源
typeahead.process is not a function
这里有一个的jsfiddle说明案例:http://jsfiddle.net/NCEFR/1/
我在做什么不当?
通知插件的版本是2.1.1
我试图设置源入引导预输入,但我发现了以下错误:Twitter的引导预输入2.1.1不能设置功能在源
typeahead.process is not a function
这里有一个的jsfiddle说明案例:http://jsfiddle.net/NCEFR/1/
我在做什么不当?
通知插件的版本是2.1.1
The function is passed two arguments, the
query
value in the input field and theprocess
callback. The function may be used synchronously by returning the data source directly or asynchronously via theprocess
callback's single argument.
正确的函数参数:
var searchFunction = function(query, process) {
var result = "result1::result2".split("::");
process(result);
}