它只在第一个自动完成中正确覆盖,但对其余部分无作为。相反,它加载了您可以在https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.autocomplete.js#L449查看的原始_renderitem方法。
$(".someClassWithMultipleItemsOnDOM").autocomplete({
delay:500,
minLength:2,
source:path"
.....
}).data( "autocomplete" )._renderItem = function( ul, item ) {
感谢您的提前帮助。
jquery-ui
的开发人员现在知道需要为多个自动完成元素提供解决方法吗? - DevlshOne