原因:eclipse的校验设置问题。但是启动项目的时候是没有影响的,可以忽略不管。
如果觉得看起来很不爽,那么在eclipse解决方法如下:
下面是红叉的报错显示
Multiple markers at this line
- The left-hand side of an assignment must be a
variable
- Type mismatch: cannot convert from any[] to any
- Type mismatch: cannot convert from any[] to any
- Type mismatch: cannot convert from any[] to any
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Syntax error on token "}", delete this token
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
步骤一:去掉eclipse的校验
windows——perferces——JavaScript——validator——去掉钩不选择
步骤二:右键点击报错js文档——validator,如果还是报错,查看下边的步骤三。
步骤三:简单粗暴的方式:
windows——showView——Markers——找到JavaScript报错提示——删掉提示——红叉消失。
---------------------
作者:渴望飞的鱼
来源:CSDN
原文:https://blog.csdn.net/qq_36411874/article/details/78662424
版权声明:本文为博主原创文章,转载请附上博文链接!