Eclipse中出现JS文件前有红叉的解决方法

时间:2021-06-19 11:01:09

Eclipse中出现JS文件前有红叉的解决方法,亲测有效:

  1. Right click your project  (右单击工程属性)
  2. Select Properties -> JavaScript -> Include(选择JavaScript下的include菜单)
  3. Select Source tab (It looks similar to the Java Build Path Source tab)(选择SOURCE标签)
  4. Expand source folder(展开菜单)
  5. Highlight Excluded pattern(选择Excluded)
  6. Click Edit button(点击edit按钮)
  7. Click Add button next to Exclusion patterns box.在新对话框中点击add按钮
  8. Click Browse button and select the JavaScript source by name.(找到需要排除的javascript文件)
Eclipse中出现JS文件前有红叉的解决方法
Eclipse中出现JS文件前有红叉的解决方法