1
swiper.js
uncaught没有捕捉到
SyntaxError 语法错误
Unexpected 不期待的
token符号
2
Uncaught 没有捕捉到
TypeError类型错误
Cannot 不能
read 读
properties 属性
of null null的
不能读取null的属性(reading ‘classList’)
reading读
classList 类列表
Uncaught TypeError没有捕捉到类型错误
Cannot read properties of undefined 不能读取未定义的属性
(reading 'add')读取add属性
add前面那个对象是undefined
原因:swiper.classList 选择到swiper没有classList的值为undefined
通过querySelectAll选择的 列表没有classList属性
未捕捉到引用错误:b 没有定义
(没有定义就去使用它了)