九州体育网 - 十年信誉网站

关于作者

Discuss / JavaScript / 疑问

疑问

Topic source

最后提到的 /path/to/dir 可以自己替换,我不是很明白,希望老师或者哪位同行大佬可以给个 例子看看

生活的比方1960

#2 Created at ...

var root = path.resolve(process.argv[2] || '.'); 就是设置文件服务器的根目录啊,process.argv[2]取出出来,/path/to/dir 就是process.argv[2]


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.