In past years , i often puzzled in the question of path , but now , i will solve it
the easy question , it still exeit because i havn't do
as example: just so so
i show it by html code , use copy file order to solver it
The first case:
you have copyed file to current list execute order
cp file name newFileName
The second case:
you have copyed test from img to pathDemo , so the current list is img , and ../ is img parent’list pathDemo
Now are you understand ? is it so easy?
Last we use other demo to explain it :
result :
As you see , the imgPath is correct , the Mallhome.html in base Path =>案例详情界面 so ../ is 小庄界面布局
if you want to use relative path : you can write mallhome.png directly
and the absolute path is /home/ly..
the wrong is 小庄界面布局/ it isn't be relative path !
error:
right:
本文主要探讨了文件复制过程中的路径处理方法,包括相对路径与绝对路径的应用,并通过实例演示了如何正确设置文件路径。
677

被折叠的 条评论
为什么被折叠?



