SyntaxError: JSON.parse: expected double-quoted property name at line 1 column 25 of the JSON data
JSON转对象时,字符某位置的key未加双引号
TypeError: obj is not iterable
在for-of的使用中,obj是不可迭代的,禁止使用
Uncaught RangeError:Invalid array length at
数值超出相应范围
Uncaught ReferenceError:b is not defined at
变量未定义(不存在的变量)
Uncaught SyntaxError:Unexpected token=
非预期中的标志,语法错误或语义错误
Uncaught ReferenceError: f is not defined **
引用错误:f 未定义
Uncaught TypeError: Assignment to constant variable **
类型错误:指派 常数 为 变量
Uncaught SyntaxError: Invalid shorthand property initializer **
语法错误:简称的属性初始化不完整
TypeError:'undefined’is Not an Object
类型错误:读取了错误的对象,调用了空对象
TypeError: 0 is not a valid argument count for any overload of XMLHttpRequest.open.
ajax启动时将xhr.send( ) 错写成了xhr.open( )
GEThttp://localhost/test/ajax/localhost/test/ajax/data/data.php[HTTP/1.1 404 Not Found 1ms]
ajax中将xhr.open的绝对路径前未添加“http://”
Uncaught SyntaxError: Unexpected token {
函数function后未加括号()
No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
请求的php上未标注允许被请求(不允许被请求)
Uncaught TypeError: Cannot set property ‘onclick’ of undefind at
点击事件的函数未被定义
Uncaught TypeError: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node’.
at HTMLAnchorElement.$.onmouseover
遍历父元素数组之后给每个子元素添加事件,触发事件时在父元素上添加子元素,形成了死循环