我已经安装了 XAMPP,有一个 htdocs 文件夹,里面有 index.html 文件,当我尝试通过 http://localhost/xampp/htdocs/index.html 在浏览器中打开它时,它说无法连接到本地主机.
I have installed XAMPP , there is a htdocs folder and inside it index.html file ,
when I try to open it in my browser through http://localhost/xampp/htdocs/index.html it says
unable to connect to localhost .
怎么了?
代替
http://localhost/xampp/htdocs/index.html
试一试
http://localhost/index.html
或者如果 index.html 保存在 htdocs 的文件夹中,那么
or if index.html is saved in a folder in htdocs then
http://localhost/<folder-name>/index.html
这篇关于当我尝试通过 `http://localhost/xampp/htdocs/index.html` 打开 HTML 文件时,它说无法连接到 localhost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
Angular 2:在本地 .json 文件中找不到文件Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
在 Ionic 2 中,如何创建使用 Ionic 组件的自定义指In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何创建使用 Ionic 组件的自定义指令?)
如何在 ionic2 中的 pop() 之后重新加载离子页面How to reload the ion-page after pop() in ionic2(如何在 ionic2 中的 pop() 之后重新加载离子页面)
Javascript 将 URL 转换为 BASE64 图像Javascript Convert an URL to a BASE64 Image(Javascript 将 URL 转换为 BASE64 图像)
使用模式 Angular 2 进行输入验证Input validation with pattern Angular 2(使用模式 Angular 2 进行输入验证)
如何在角度2中动态更改css类名How to change the css class name dynamically in angular 2(如何在角度2中动态更改css类名)