摘要:
Type(x)Type(y)Result type(x)==type(y) x===y otherwise... false null undefined true undefined null true Number String x==toNumber(y) String Number toNumber(x)==y Boolean (any) toNumber(x)==y (any) Boolean x==toNumber(y) String or Number Object x==toPrimitive(y) Object String or Number toPrimitive(x). 阅读全文