📜  绝对路径和相对路径之间的区别 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:32.058000             🧑  作者: Mango

代码示例1
The Absolute path tells us the path of the current file from the root directory.
The Relative path tells us the path of the current file related to the current directory

For example you have a project folder named cryptocurrencyApp. which contains an image named currency.png.
The relative path for img is gonna be /image/currency.png , and 
Its absolute path is gonna be C:\/cryptocurrencyApp/image/currency.png