JavaScript 错误错误
ENOTFOUNDENOTFOUND
DNS 查询失败,主机名无法解析为 IP 地址。
node
查看详情 RangeError: precision is out of range传给 toFixed()、toPrecision() 或 toExponential() 的精度值超出了允许范围。
你向数字格式化方法传入了超出有效范围的值。toFixed() 接受 0-100,toPrecision() 接受 1-100,toExponential() 接受 0-100。传入 NaN、负数或非常大的数会触发此错误。
在调用方法之前将精度值限制在有效范围内。使用 Math.min(Math.max(precision, 0), 100) 确保值在范围内。
(1.5).toFixed(200); // RangeError: precision out of rangeENOTFOUNDDNS 查询失败,主机名无法解析为 IP 地址。
TypeError: Cannot set properties of undefined/null尝试对 undefined 或 null 赋值属性。
AggregateError包装多个错误的错误对象,通常在 Promise.any() 中所有 Promise 都被拒绝时抛出。
RangeError: Maximum call stack size exceededJavaScript 调用栈已耗尽,通常由无限或过深的递归引起。
EPIPE试图向读取端已关闭的管道或套接字写入数据。
TypeError: Cannot convert undefined or null to object接受对象参数的内置方法收到了 null 或 undefined。