87,995
社区成员
发帖
与我相关
我的任务
分享$("#XX").autocomplete(json数据, {
minChars : 0,
width : 230,
matchContains : true,
autoFill : false,
formatItem : function(row, i, max) {
return row.name + "\ [" + row.id + "]";
},
formatMatch : function(row, i, max) {
return row.name + " " + row.id+ " " + row.pym;
},
formatResult : function(row) {
return row.name;
}
});类似这样