【发布时间】:2019-08-12 05:29:27
【问题描述】:
搜索栏适用于 Chrome 和 Opera,但不适用于上述浏览器。我建议它与onsearch="search(event)" 有关。
Mozilla 说它不受支持,我想知道是否有人知道此问题的解决方案?
HTML:
<input
type=search
name=""
id="filterSearch"
placeholder="Search for events, seasonal meals or simply list ingredients"
onsearch="search(event)"
>
【问题讨论】:
-
By the sounds of this 看起来它只是一个美化的 onsubmit(你的表单),如果输入是一个数字增量器,它听起来像是一个超时的 onkeyup 功能
标签: javascript html django firefox search