unhandledRejection进程事件。
process.on('unhandledRejection', (reason, p) => { console.log('Unhandled Rejection at: Promise', p, 'reason:', reason); // application specific logging, throwing an error, or other logic here});
欢迎分享,转载请注明来源:内存溢出
unhandledRejection进程事件。
process.on('unhandledRejection', (reason, p) => { console.log('Unhandled Rejection at: Promise', p, 'reason:', reason); // application specific logging, throwing an error, or other logic here});
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)