目前遇到的各种报错信息汇总

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
遍历父元素数组之后给每个子元素添加事件,触发事件时在父元素上添加子元素,形成了死循环

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值