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
虽然不影响运行,但是看着很别扭。可能是myeclipse对js的校验不太准,解决方法,选中js文件,右键Myeclipse--

Manage Validation--Exclude Resource--选中有红叉的js--OK

你可能感兴趣的:(js)