Name
Type
minChars
Number
|
Default:
1
|
执行autocomplete的最小值
The minimum number of characters a user has to type before the autocompleter activates.
|
delay
Number
|
Default:
400 for remote, 10 for local
|
显示自动自动完成选择框的延迟时间
The delay in milliseconds the autocompleter waits after a keystroke to activate itself.
|
cacheLength
Number
|
Default:
10
|
缓存长度
The
number of backend query results to store in cache. If set to 1 (the
current result), no caching will happen. Must be >= 1.
|
matchSubset
Boolean
|
Default:
true
|
匹配子集
Whether
or not the autocompleter can use a cache for more specific queries.
This means that all matches of "foot" are a subset of all matches for
"foo". Usually this is true, and using this options decreases server
load and increases performance. Only useful with cacheLength settings
bigger than one, like 10.
|
matchCase
Boolean
|
Default:
false
|
是否敏感的比较。
Whether or not the comparison is case sensitive. Important only if you use caching.
|
matchContains
Boolean
|
Default:
false
|
匹配内容。
Whether
or not the comparison looks inside (i.e. does "ba" match "foo bar") the
search results. Important only if you use caching. Don't mix with
autofill.
|
mustMatch
Boolean
|
Default:
false
|
必须完全匹配。
If
set to true, the autocompleter will only allow results that are
presented by the backend. Note that illegal values result in an empty
input box.
|
selectFirst
Boolean
|
Default:
true
|
如果设置为true则第一个值会被自动选中。
If
this is set to true, the first autocomplete value will be automatically
selected on tab/return, even if it has not been handpicked by keyboard
or mouse action. If there is a handpicked (highlighted) result, that
result will take precedence.
|
extraParams
Object
|
|
额外的参数。
Extra
parameters for the backend. If you were to specify { bar:4 }, the
autocompleter would call my_autocomplete_backend.php?q=foo&bar=4
(assuming the input box contains "foo"). The param can be a function
that is called to calculate the param before each request.
|
formatItem
Function
|
Default:
Assumes that a single row contains a single value.
|
格式化结果内容
Provides
advanced markup for an item. For each row of results, this function
will be called. The returned value will be displayed inside an LI
element in the results list. Autocompleter will provide 4 parameters:
the results row, the position of the row in the list of results
(starting at 1), the number of items in the list of results and the
search term.
|
formatMatch
Function
|
Default:
formatItem is used
|
格式化匹配项
Use
this option if you want to limit the data that autocomplete searches
for matches. For example, there may be items you want displayed to the
user, but don't want included in the data that's searched. Gets called
with the same arguments as formatItem.
|
formatResult
Function
|
Default:
Assumes either plain data to use as result or uses the same value as provided by formatItem.
|
格式化结果
Similar
to formatItem, but provides the formatting for the value to be put into
the input field. Again three arguments: Data, position (starting with
one) and total number of data.
|
multiple
Boolean
|
Default:
false
|
是否允许多选
Whether to allow more than one autocompleted-value to enter.
|
multipleSeparator
String
|
Default:
", "
|
Seperator to put between values when using multiple option. |
width
Number
|
Default:
width of the input Element
|
选择框的宽度 |
autoFill
Boolean
|
Default:
false
|
当选中自动提示框里面的选项时INPUT框内是否自动补全 |
max
Number
|
Default:
10
|
自动完成提示的显示数量 |
highlight
Boolean
, Function
|
Default:
Wraps the search term in a <strong> Element
|
高亮显示当匹配到选择框的元素。
Whether
and how to highlight matches in the select box. Set to false to
disable. Set to a function to customize. The function gets the value as
the first argument and the search term as the second and must return
the formatted value.
|
scroll
Boolean
|
Default:
true
|
当结果集大于默认高度时是否使用卷轴显示 |
scrollHeight
Number
|
Default:
180
|
自动完成提示的卷轴高度用像素大小表示 |
相关推荐
利用jquery.autocomplete插件搜索并将查询出来的结果进行分页
autocomplete插件原有功能,不能满足需求所以修改了增加了以下几点功能: 1 粘贴文本自动加载数据 2 滚动条滚动到底部加载更多数据 3 与页面插件联动更新数据(清除缓存) 4 增加插件赋值给一个隐藏域,就可以得到文本和...
利用Jquery.AutoComplete插件及微软提供的ChineseConverter.dll实现汉字、拼音、简拼模糊搜索
autocomplete.js是一个基于jquery的js插件,主要可以在html中实现input框的联想功能,与平时开发手写的for循环相比,autocomplete.js插件使用更为便捷,加上配套的ui,基本可以0代码实现快速美观的input联想。
PHP结合jQuery.autocomplete插件实现输入自动完成提示的功能_.docx
运用jquery.autocomplete.js 和jquery.autocomplete.css实现文本框自动补全,直接下载可以看到运行效果,带注释
基于jquery.autocomplete的分页实现,修改了autocomplete.js。项目是vs2010,用的dotnet2做后台,内有效果图。
jquery.autocomplete插件的参数详细说明、重要函数讲解、应用实例、中文匹配、注意问题等。并包含了使用实例。
NULL 博文链接:https://canrry.iteye.com/blog/750679
[ jquery.autocomplete ]jquery的自动完成/补全插件(很好很强大) 谁用谁知道
基于.net和Jquery.autocomplete插件 做的智能匹配下拉框,可选择可输入,采用json数据格式,支持汉字、拼音和拼音首字母进行智能匹配。 使用说明: 1、如果想不做任何修改直接看效果,请在本地创建一张名为tb_Manage...
jquery实现autocomplete插件(文本框下拉选项).zip
jQuery.Autocomplete 是jquery的流行插件,能够很好的实现输入框的自动完成(autocomplete)、建议提示(input suggest)功能,支持ajax数据加载。
jquery.autocomplete 是一款比较好用的智能补全插件(类谷歌,百度),遗憾的是很难找到相关的教程,笔者自己的使用经验算是给大家一个入门(还有很多强悍功能没用到)。插件和说明是在一起的,下载下来都在了
jQuery.autocomplete 是jquery的流行插件,,能够很好的实现输入框的自动完成(autocomplete)、建议提示(input suggest)功能,支持ajax数据加载。
jquery-autocomplete 自动完成插件
NULL 博文链接:https://zhuhong7000-gmail-com.iteye.com/blog/1399012
本文将使用jquery ui的autocomplete插件,结合后端PHP,数据源通过PHP读取mysql数据表的数据。 XHTML 首先将jquery库和相关ui插件,以及css导入。 复制代码 代码如下: <link rel=”stylesheet” href=”jquery....
Jquery autocomplete插件使用