We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
举个例子:
// 区别1: path.join('a','b') // a\b path.resolve('a', 'b') // E:\code\node\express\a\b // 区别2 // resolve识别拼接的如果首个字符是‘/’ 则把‘/’当成根目录 path.join('a', '/b') // a\b path.resolve('a', '/b') // E:\b
__dirname是当前目录的绝对路径
。。。未完待续
The text was updated successfully, but these errors were encountered:
No branches or pull requests
path.join()和path.resolve()的区别
举个例子:
。。。未完待续
The text was updated successfully, but these errors were encountered: