【问题标题】:Disable similar results from list.js禁用 list.js 中的类似结果
【发布时间】:2019-12-23 22:46:19
【问题描述】:

我使用 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>

【问题讨论】:

    标签: list.js


    【解决方案1】:

    您正在使用模糊搜索,如果您将 &lt;input type="text" class="fuzzy-search" /&gt; 更改为 &lt;input type="text" class="search" /&gt; 它可以工作。

    check it Codepen

    【讨论】:

    • 抱歉,很晚才看到你的回复。这是工作。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-21
    • 2014-08-06
    • 1970-01-01
    • 1970-01-01
    • 2016-11-26
    • 1970-01-01
    相关资源
    最近更新 更多