用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