开发者

file reference with slash

开发者 https://www.devze.com 2023-04-06 14:59 出处:网络
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 refe

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

精彩评论

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

关注公众号