【问题标题】:Aptana Studio 3 - Can't check typo errors?Aptana Studio 3 - 无法检查拼写错误?
【发布时间】:2013-12-15 19:36:50
【问题描述】:

我正在使用 Aptana Studio 3 来学习 JavaScript。我开始喜欢这个 IDE,但它的一个缺点是当我出现类型错误时,例如:

if (comfirm("are you sure ?")) // "coMfirm", the right one is "confirm"
{
    alert("you answered yes");
}
else
{
    alert("you answered NO");
}

然后当我点击运行按钮时,IDE 忽略了这个错误并继续运行我当前的文件。我觉得这种错误是肉眼难以识别的,让我的学习过程遇到了很多困难。

【问题讨论】:

    标签: aptana spelling


    【解决方案1】:

    这不是 Aptana Studio 的问题,而是 Javascript 的问题。 使用 Firefox 运行您的代码。然后在 Firefox 中右键单击您的页面并从菜单中选择最后一项(使用 (Q))。在firefox下面打开一个新的页脚选择“Console”和“JS”。它会显示错误“ReferenceError: comfirm is not defined”,并在右边缘显示文件名和行号。

    【讨论】:

      猜你喜欢
      • 2010-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-15
      • 2013-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多