路径/和./的区别

WBOY
Release: 2016-06-23 14:02:54
Original
1438 people have browsed it

我把服务器上的项目放到本地运行 但其中图片和JS、CSS都出不来了 路径是/abc/cde/ads.asd 如果改成./abc/cde/ads.asd 或abc/cde/ads.asd就没问题
问下是哪里的问题 该怎么解决 难道要一个一个替换掉


回复讨论(解决方案)

/开头表示根目录开始的路径
./开头表示当前目录开始的路径,可省略

绝对路径  相当路径

/开头表示根目录开始的路径
./开头表示当前目录开始的路径,可省略

这个似乎是很基本的吧

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template