jQuery的自动完成插件 Autocomplete
- 授权协议: MIT/GPL
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
- 软件文档: http://docs.jquery.com/Plugins/Autocomplete
- 官方下载: http://jquery.bassistance.de/autocomplete/jquery.autocomplete.zip
软件介绍
这是一个在文本输入框中实现自动完成的jQuery插件。本站采用了该插件。
使用代码示例:
$("#f_prj_name").autocomplete("/list_projects_of_prefix", {
minChars: 1,
width: 310,
matchContains: true,
autoFill: false,
formatItem: function(data, i, n, v) {
return i + ":" + v;
},
formatResult: function(data,v) {
return v;
}
});而服务器返回的数据很简单,返回的文本每一行放一个匹配的结果即可。
运行后界面如下图所示:
Head First Python
Paul Barry / O'Reilly Media / 2010-11-30 / USD 49.99
Are you keen to add Python to your programming skills? Learn quickly and have some fun at the same time with Head First Python. This book takes you beyond typical how-to manuals with engaging images, ......一起来看看 《Head First Python》 这本书的介绍吧!
