JavaScript 忽略错误提示的方法: 可以使用 Eclipse 工具实现忽略 JavaScript 错误提示. 在 Eclipse 中将 JavaScript 文件设置为需要忽略的文件即可.
使用工具 Eclipse 实现忽略 JavaScript 错误提示:
第一步, 点开 Windows--show view--other, 选择 Problems.
第二步, 下图为有红叉的代码
第三步, 在红叉上右键, 选择 Properties
第四步, 选择 JavaScript--Include Path--Source--Excluded, 然后点击 Add Folder
第五步, 点击右边的 Add
第六步, 选择 Brows 选择项目下需要忽略的文件.
第七步, 点击确定后, 回到项目目录下, 你就会看到, 刚才还报红叉的项目, 现在已经恢复正常了.
来源: http://www.css88.com/qa/javascript/11872.html