📜  nodejs 退出事件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:00.388000             🧑  作者: Mango

代码示例1
import process from 'process';

process.on('exit', (code) => {
  console.log(`About to exit with code: ${code}`);
});