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去验证它。

解决方法:

选中js文件,右键Myeclipse--ManaValidation--ExcludeResource--(选中全部或者那个js)--OK

猜你喜欢

转载自blog.csdn.net/weixin_40137479/article/details/79409724
今日推荐