其他分享
首页 > 其他分享> > js常见错误类型

js常见错误类型

作者:互联网

js 错误类型
A、Uncaught TypeError: Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
未捕获的类型错误:不能在“窗口”环境上调用执行“getComputedStyle”方法:因为参数1不是“元素”类型没有填入参数或者填入参数的第一个参数不是对应参数类型的(错误是引入了两个js文件)
B、 Uncaught TypeError: Cannot set property ‘init’ of undefined
未捕获的类型错误:无法设置取消定义的属性“init”; 句子中prototype 写成prototyle

标签:错误,常见,getComputedStyle,js,init,参数,类型
来源: https://blog.csdn.net/ZzTiAmo/article/details/98589793