『nodejs』path 模块

path 模块

path模块路径片段连接成新的路径

const path = require("path")
const filePath = path.join(__dirname, "tmp", 'hello.txt') // 路径拼接
posted @ 2020-07-08 18:53  一生亦木  阅读(29)  评论(0)    收藏  举报