引入path模組const path=require("path") //書寫要拼接的路徑const pathStr=path.join('/a','/b/c','../','./d','e') console.log(pathStr).
確定! 回上一頁