摘要: 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). 阅读全文
posted @ 2011-03-21 22:57 simayixin 阅读(720) 评论(2) 推荐(0) 编辑