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

上一篇:JS获取样式


下一篇:记一次切图(PC)要注意的问题