2010年05月Archive for
Web前端开发QQ群 110939958-业余程序员
直接摘自ECMA262 章节号:11.9.3 The Abstract Equality Comparison Algorithm 比较 x == y, 当 x 和 y 都是值的时候, 产生true或false. 这样的一个比较执行如下: If Type(x) is the same as Type(y), then If Type(x) is undefined, return true. If Type(x) is Null, return true. If Type(x) is Number, then If x is NaN, return false. If y is NaN, return false. If x is the same Number value as y, return true. If x is +0 and y is −0, return true. ...