理解path.join() 和 path.resolve()

path.resolve('/foo/bar', './baz'); // 返回: '/foo/bar/baz' path.resolve('/foo/bar', '/tmp/file/'); // 返回: '/tmp/file' path.resolve('wwwroot', 'static_files/png/', '../gif/image.gif'); // 若是當前工做目錄爲 /ho
相關文章
相關標籤/搜索