gpt4 book ai didi

jQuery自动完成修改Gmail类似匹配

转载 作者:行者123 更新时间:2023-12-01 08:28:32 25 4
gpt4 key购买 nike

$("#suggest3").autocomplete(someArray, {
multiple: true,
mustMatch: true,
autoFill: true

});

"Jhon Smith"
"Borris Baker"
"Dove Elliot"

现在,在上面的组合中,当我输入“Jhon Smith”时,下拉列表中将提供一个值( Jhon Smith )......但是如何进行调整,以便即使我输入“Smith Jhon”仍然是该值( Jhon Smith )可供选择...:s

即就像在 Gmail 中一样,无论人名中包含的单词的顺序是什么,只要“Jhon”和“Smith”在那里,它就会显示结果......也就是说,顺序并不重要。

最佳答案

以下是 Gmail 样式匹配的示例:http://jsbin.com/utojoh/2

例如输入“bl”

关于jQuery自动完成修改Gmail类似匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1678936/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com