开发者

file reference with slash

If I am referenceing a file (lets say开发者_运维问答 an image file for it to display on a webpage) which is a few folders above, I can write "folder1/folder2/file.jpg". What does it mean if the reference starts with a slash like "/folder1/folder2/file.jpg"?


Leading slash means that the reference is starting from the root directory (absolute reference) vs. the current location (relative reference).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜