-1

!在这个条件中使用非运算符 ( ) 给了我:

“未捕获的语法错误:意外的令牌!”

if (text.includes(input[j])) {
   $(Messages[i]).hide();
}
else if !(text.includes(input[j])) {
   $(Messages[i]).show();
}

为什么不在!这里工作?

4

1 回答 1

7

!应该在()

else if (!text.includes(input[j]))
于 2015-07-16T22:25:06.063 回答