[英]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.