用jQ ui 的Autocomplete,在安卓中是点一次;在IOS中下拉菜单点两次才选中。$('.search-aim-input-1').autocomplete( { minLength: 0,
source: [{label:'PVG-SHANGHAI PUDONG'+"<span class='fr'>"+ "上海" +"</span>",value:'PVG-SHANGHAI PUDONG(上海)' }]
})--.代码是这样的。。
1 回答

小唯快跑啊
TA贡献1863条经验 获得超2个赞
如下可以解决
$( "#tags" ).autocomplete({
source: availableTags,
open: function(event, ui) {
$('.ui-autocomplete').off('menufocus hover mouseover mouseenter');
}
}).focus(function(){
// The following works only once.
// $(this).trigger('keydown.autocomplete');
// As suggested by digitalPBK, works multiple times
$(this).autocomplete("search");
});
添加回答
举报
0/150
提交
取消