MyEclipse中引入jquery.min.js文件报错

问题:

myeclipse中引入jquery.min.js文件报错,出现如下的红叉(我已经解决问题了,这里用一下别人报错的截图)

在这里插入图片描述

报错提示
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

原因:

没有告诉myeclipse去验证jquery.min.js文件

解决方案

右键报错的文件,依次点击 MyEclipse --> Exclude From Validation,解决问题
在这里插入图片描述

发布了56 篇原创文章 · 获赞 70 · 访问量 8907

猜你喜欢

转载自blog.csdn.net/weixin_44835732/article/details/103833318