每次我在使用 Netbeans 时使用像“if (a == b) {...}”这样的 if 语句,我都会收到这些烦人的警告 'Expected "==="and instead saw "==".' 有办法关闭它们吗?
最佳答案
您可以在 Options
-> Editor
-> Hints
中关闭它。
然后选择您的语言并在列表中找到它。对于 JavaScript,它是
报告在条件中使用 == 或 != 而不是 === 或 !== 的情况
关于javascript - "=="、 "!="等的 Netbeans javascript 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19948095/