摘要:
__dirname 表示当前文件所在的目录的绝对路径__filename 表示当前文件的绝对路径module.filename ==== __filename 等价process.cwd() 返回运行当前脚本的工作目录的路径process.chdir() 改变工作目录 例子,文件路径有如下结构:newapp > demo > hello.js在hello.js文件中编写如下代码: console... 阅读全文
posted @ 2019-01-16 15:23
alexandra
阅读(660)
评论(0)
推荐(0)