在Electron BrowserWindow中进行全文本搜索 [英] Full text search in Electron BrowserWindow

查看:71
本文介绍了在Electron BrowserWindow中进行全文本搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

电子应用程序框架是否内置了文本搜索功能?

Does the Electron application framework have built-in text search?

快速启动应用程序没有提供任何明显的搜索功能(例如,使用 Ctrl-F 或从菜单选项)。我希望这是一个 BrowserWindow 选项(或其 WebContents 的选项) ,但我认为文档中没有任何帮助。

The quick-start application doesn't provide any apparent search functionality (e.g. using Ctrl-F or from the menu options). I would have expected this to be a BrowserWindow option (or an option of its WebContents), but I don't see anything helpful in the docs.

推荐答案

尝试 webContents.findInPage

这篇关于在Electron BrowserWindow中进行全文本搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆