在这个条件中使用not运算符( ! )给了我:
!
“未捕获的SyntaxError:意外的令牌!”
if (text.includes(input[j])) { $(Messages[i]).hide(); } else if !(text.includes(input[j])) { $(Messages[i]).show(); }
为什么不 ! 在这里工作?
! 应该在 () 之内:
()
else if (!text.includes(input[j]))
1 回答
!
应该在()
之内: