find

翻译不完整。 请帮助我们翻译这篇文章!

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

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

功能

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

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxOperaSafariFirefox for Android
findChrome No support NoEdge No support NoFirefox Full support 57Opera No support NoSafari No support NoFirefox Android No support No
highlightResultsChrome No support NoEdge No support NoFirefox Full support 57Opera No support NoSafari No support NoFirefox Android No support No
removeHighlightingChrome No support NoEdge No support NoFirefox Full support 57Opera No support NoSafari No support NoFirefox Android No support No

Legend

Full support  
Full support
No support  
No support

Example extensions