JavaScript 错误致命
InternalError: too much recursionInternalError: 递归过深
Firefox 特有的错误,等同于 Chrome/Node.js 中的 RangeError: Maximum call stack size exceeded。
browser
查看详情 ReferenceError引用了当前作用域中不存在的变量。
尝试使用一个未声明、不在作用域内,或在声明前被访问(暂时性死区)的变量。也可能由变量名拼写错误引起。
使用 let、const 或 var 在使用前声明变量。检查变量名是否有拼写错误。确保在访问位置变量在作用域内。导入缺少的模块。
console.log(undeclaredVar); // ReferenceError: undeclaredVar is not definedInternalError: too much recursionFirefox 特有的错误,等同于 Chrome/Node.js 中的 RangeError: Maximum call stack size exceeded。
EHOSTUNREACH目标主机不可达,通常由网络路由问题引起。
URIError全局 URI 处理函数(decodeURIComponent、encodeURI)接收到了格式错误的 URI。
SyntaxError: Applying delete to unqualified name in strict mode在严格模式下,delete 运算符被用于普通变量名,此操作不被允许。
SyntaxError: Unterminated string literal字符串字面量缺少结束引号。
SyntaxError: JSON.parse unexpected characterJSON.parse() 遇到了非法 JSON 语法,例如单引号、尾随逗号或未加引号的键名。