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
process.exit方法用来退出当前进程。它可以接受一个数值参数,如果参数大于0,表示执行失败;如果等于0表示执行成功。
process.exit
if (err) { process.exit(1); } else { process.exit(0); }
如果不带有参数,exit方法的参数默认为0。
exit
The text was updated successfully, but these errors were encountered:
No branches or pull requests
退出进程
process.exit
方法用来退出当前进程。它可以接受一个数值参数,如果参数大于0,表示执行失败;如果等于0表示执行成功。如果不带有参数,
exit
方法的参数默认为0。The text was updated successfully, but these errors were encountered: