您的位置:首页 > Web前端 > JQuery

jquery autocomplete 中文问题 问题解决

2013-08-12 16:07 423 查看
$("#userName").autocomplete(emails, {

minChars: 0,

width: 650,

matchContains: false,

autoFill: false,

formatItem: function(row, i, max) {

return "<span style=\"font-size:30px;\">"+i + "/" + max + ": \"" + row.name + "\" [" + row.to + "] </span>";

},

formatMatch: function(row, i, max) {

return row.to;

},

formatResult: function(row) {

return row.name;

}

});

注意: matchContains: ‘word’, 改成 matchContains: false, 可搜索中文
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: