javascript - "=="、 "!="等的 Netbeans javascript 警告

标签 javascript if-statement netbeans warnings

每次我在使用 Netbeans 时使用像“if (a == b) {...}”这样的 if 语句,我都会收到这些烦人的警告 'Expected "==="and instead saw "==".' 有办法关闭它们吗?

最佳答案

您可以在 Options -> Editor -> Hints 中关闭它。 然后选择您的语言并在列表中找到它。对于 JavaScript,它是 报告在条件中使用 == 或 != 而不是 === 或 !== 的情况

关于javascript - "=="、 "!="等的 Netbeans javascript 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19948095/

相关文章:

java - 为什么此代码接受字符串输入并输出 int 不起作用? java

javascript - 如何在javascript中对对象列表的数组进行排序?

excel - Excel 中的多个 IF THEN

c# - 检测到无法访问的代码,if 语句中的变量

java - 项目在 NetBeans 上运行良好,但 .jar 出现错误

java - 将 jedis .jar 文件上传到 Git 存储库

Netbeans Ant build.compiler.emacs

javascript - 从 React.JS 状态调用方法

javascript - 页面加载前短暂的白色闪烁

javascript - 传单+本地.osm文件