javascript语法错误
1.can not read property 'id' from undefined
这个表示说我们想要取值的对象为undefied, 此时debug就要找到表达式所在的位置,进行调试
2. a is not defined
我们使用了 a 但是未定义,此时需要找到对应文件,看看是拼写错误还是忘记定义
3.a is already declared
当我们用let 声明变量时,变量名不允许重复
4.uncought TypeError
根据提示进行debug
5.syntax error
语法错误,检查报错位置的语法
6.aa.forEach is not a function
检查调用forEach方法的aa 是否存在forEach方法