1.将浏览器端需访问的资源放在htdocs文件夹下。
e.g. 1)开启xampp服务,在浏览器中访问http://localhost/;
2)将资源放在htdocs文件夹下的demo文件夹中;
3)如需在浏览器中需要访问index.html页面,在浏览器中访问http://localhost/demo/index.html即可。
1.将浏览器端需访问的资源放在htdocs文件夹下。
e.g. 1)开启xampp服务,在浏览器中访问http://localhost/;
2)将资源放在htdocs文件夹下的demo文件夹中;
3)如需在浏览器中需要访问index.html页面,在浏览器中访问http://localhost/demo/index.html即可。