我想我发现了误报:
const items = document.querySelectorAll(selectors);
for (const item of items) {
if(item) { //Change this condition so that it does not always evaluate to "false".
....
}
}
Change this condition so that it does not always evaluate to "false".
我不明白为什么它会创建这张票。我可以理解它是否总是评估为“true”,因为 document.querySelectorAll
不应返回 null
结果。
有什么想法吗?
我们使用的是 2.13 版本的 javascript 插件。
最佳答案
版本 2.14 不会引发此类代码的问题。
关于javascript:S2583 误报,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38585967/