在Chrome中调试JS



之前,当未定义Java脚本中的变量并且您尝试使用它时,Chrome Console显示该变量未定义。这已经从新版本中消失了。Firefox正确显示错误。是否可以激活有关未定义变量的错误的输出?

它没有消失,请亲自查看:点击F12,然后键入a.undefined()。您将获得ReferenceError: a is not defined

最新更新