list.js - 禁用 list.js 中的类似结果
问题描述
我使用 list.js,但它也显示类似的结果。例如,我正在输入 Mar...,网站还显示 mur、car、man 等。如何禁用它们?
这是来自codepen的演示:
<p class="codepen" data-height="265" data-theme-id="0" data-default-tab="html,result" data-user="javve" data-slug-hash="isInl" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="List.js - Fuzzy search">
<span>See the Pen <a href="https://codepen.io/javve/pen/isInl/">
List.js - Fuzzy search</a> by Jonny Strömberg (<a href="https://codepen.io/javve">@javve</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
解决方案
您正在使用模糊搜索,如果您更改<input type="text" class="fuzzy-search" />
为<input type="text" class="search" />
它有效。
推荐阅读
- excel - 将数据从数据透视表提取到 VBA 中的数组(Excel)
- java - 我可以从多个表中获取数据而没有可连接或外键吗
- java - 如何正确拆分字符串?
- ruby - 如何将 ruby-watir 代码放入定义的方法中?
- service-worker - Why service-worker does not cache js file
- excel - SUM multiple Measures in CUBEVALUE
- c# - 如何在 C# 中安排 Selenium Web 驱动程序测试
- python - What is a good way to create objects with methods on the fly in Python?
- flutter - Flutter:showDatePicker:取消按钮的替代文本是否可能?
- docker - Docker image is very large when including a small node library