[英]Jump to string an website without an anchor
是否有可能(可能使用 javascript)通过网站上的链接跳转到特定的句子(字符串)?
像锚一样,只是没有 HTML 中的锚。
这是搜索结果中的一个示例,搜索字符串为“内容目录”:
Result: <a href="https://aaa.de/sss/planets/">planets/</a> on line 20: <br>
If you create a folder within the content directory (e.g. <code class="hljs lua">content/<span class="hljs-built_in">sub</span></code>) and...
链接打开后,浏览器应该跳转到这一行(行号当然只是搜索到的文本文件中的行号。)并且喜欢为搜索字符串着色。
我发现了一些有用的脚本: http://www.seabreezecomputers.com/tips/find6.htm
它提供了一个侧面搜索按钮
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.