监听
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});
上一篇 如何在Node.js中解析包含“ NaN”的JSON字符串
下一篇 未捕获的TypeError:Object.values不是JavaScript函数
版权所有 ©2023-2025 051e.com
ICP备案号:京ICP备12030808号