我在使用本地主机的 Firefox 时遇到了一个奇怪的问题。
当我到达时:
http://localhost/mysite/mypage.html
Run Code Online (Sandbox Code Playgroud)
它带来了谷歌搜索:
Your search - localhost/mysite/mypage.html - did not match any documents.
Run Code Online (Sandbox Code Playgroud)
但其他时候……它会在 Firefox 中显示我的页面。
它在 Chrome 中始终如一(我总是看到我的网页)
我可以更改 Firefox 上的设置以防止出现这种情况吗?
这很可能是因为您在某处有一个空格,Firefox 会将其发送到搜索而不是替换 %20。Firefox 只会在识别出您输入地址时替换空格。显然,Firefox 不会像识别 *.com(等)那样自动将 localhost 识别为域,因此它假定您要搜索。您的基本选项是:
http://
,即输入http://localhost/
而不是localhost/
要禁用地址栏搜索,请导航至about:config
并设置keyword.enabled
为false
。
归档时间: |
|
查看次数: |
309 次 |
最近记录: |