是否可以使用 Jquery 模拟 Ctrl+F 组合键?
我有一个包含大量信息的页面,如果用户单击链接并且弹出浏览器搜索栏,就像按下 Ctrl+ 一样,那就太好了F。我可以查询数据库,因为信息来自那里,但我不想在链接单击时重新加载页面。
I have a page with a lot of information in it, and it would be nice if the user clicked on a link and the the browser search bar popped out as it would if they pressed Ctrl+F. I could query the database, since the information cames from there, but I don't want to reload the page on link click.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
某些浏览器支持 window.find()
Some browsers support window.find()
我知道这篇文章很旧,但我想我使用 jquery 解决了这个问题:
I know this post is old but i think i solved this using jquery:
有一些插件可以让您执行此操作,例如:https://github.com/jeresig/jquery。热键
There are some plugins that let you do this, for example: https://github.com/jeresig/jquery.hotkeys