==和===

==:等于,只比较内容,只要内容相等则返回true

===:完全等于,不仅比较内容,还比较类型,当内容和类型都相同时才返回true

NaN谁都不相等,包括自己(NaN ==NaN是错的)
NaN的数据类型是number

undefined == null

undefined!==null

123=="123"

123!=="123"

0==false

undefined!=false

null!=false

原文地址:https://www.cnblogs.com/tangdiying/p/10098779.html