我得到了一个TypeError
以及菜单不显示后添加_renderMenu
方法.当我删除该方法,它的工作;然而,我想调整菜单的默认外观.我不知道是什么原因导致的错误,并希望任何帮助.下面是代码:
$.widget( 'ui.autocomplete', $.ui.autocomplete, {
_renderMenu : function ( ul, items ) {
}
});
var tags = [
"Books",
"Magazines",
"Poems"
];
$( "#automplete" ).autocomplete({
source: tags
});
字符串
这里是错误:
Uncaught TypeError: Cannot read properties of undefined (reading 'value')
at x.<computed>.<computed>.menufocus
at HTMLUListElement.i
at HTMLUListElement.dispatch
at v.handle
at Object.trigger
at HTMLUListElement.<anonymous>
at Function.each
at e.<computed>.each
at e.<computed>.trigger
at x.<computed>.<computed>.
型
1条答案
按热度按时间brccelvz1#
请检查这个:
个字符
完整工作示例:
的字符串