如何取得相對路徑

 

OUTPUT:
==================
The relative path is relative from: c:/a/b/path
The relative path is relative to: c:/a/x/y/file
The relative path is: ../../x/y/file

發佈了60 篇原創文章 · 獲贊 12 · 訪問量 39萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章