我使用list.js,但它也显示类似的结果。例如,我正在输入Mar...,网站显示也有mur、car、man等。我如何禁用它们?
它是来自codepen的demo:
<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>发布于 2019-11-27 18:17:28
您正在使用模糊搜索,如果您将<input type="text" class="fuzzy-search" />更改为<input type="text" class="search" />,它将起作用。
https://stackoverflow.com/questions/57544465
复制相似问题