Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: JavaScript === vs ==:我使用哪个“相等”运算符有关系吗? Javascript 运算符 !==
!=和有什么区别!==?
!=
!==
你能给我一个例子,说明 using!=给出的结果不是 using!==吗?
alert(1 != true); alert(1 !== true);
第一个是假的,第二个是真的。
例子