jQuery自动补齐插件 Marco Polo
- 授权协议: 未知
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/jstayton/jquery-marcopolo
- 软件文档: https://github.com/jstayton/jquery-marcopolo
软件介绍
马可波罗(Marco Polo),一个为独具慧眼的开发人员准备的jQuery自动补齐插件。
在线演示:http://justinstayton.com/jquery-marcopolo/
示例代码:
$('#userSearch').marcoPolo({
url: '/users/search',
formatItem: function (data, $item) {
return data.first_name + ' ' + data.last_name;
},
onSelect: function (data, $item) {
window.location = data.profile_url;
}
});