JS常见问题概览
Uncaught TypeError: undefined is not a function
Uncaught ReferenceError: Invalid left-hand side in assignment
// 正确逻辑是比较func1的返回值。因少写了一个“=”,变成了无效的赋值语句。
function func1 () {
return 1
}
if (func1() = 1) {
console.log('true')
}Uncaught SyntaxError: Invalid or unexpected token
Uncaught TypeError: Converting circular structure to JSON
Uncaught RangeError: Maximum call stack size exceeded
onbeforeunload事件无效
最后更新于