Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 563 Bytes

File metadata and controls

23 lines (16 loc) · 563 Bytes
title slug
find
Mozilla/Add-ons/WebExtensions/API/find

{{AddonSidebar}}

在网页中查找文本,并突出显示匹配项。

要使用此 API,你需要具有“查找” 权限

功能

  • {{WebExtAPIRef("find.find()")}}
    • : 在网页中查找文本。
  • {{WebExtAPIRef("find.highlightResults()")}}
    • : 突出显示找到的最后一组匹配项。
  • {{WebExtAPIRef("find.removeHighlighting()")}}
    • : 删除所有突出显示。

浏览器兼容性

{{Compat}}