摘要:
[]==![]这个问题我想大家并不陌生。我在这根据ecma规定来分析下这个运算过程的原理。根据ecma--11.9.11 A==B 运算的顺序如下1.Evaluate A.2.Call GetValue(Result(1)).3.Evaluate B.4.Call GetValue(Result(3)).5.Perform the comparison Result(4) == Result(2). (see 11.9.3).6.Return Result(5).[]==![]=>计算A和B的值,取到A和B的真实值。[]=>[] . ![]=>false. false==[] 阅读全文
posted @ 2011-04-27 17:15
日—月
阅读(206)
评论(0)
推荐(0)
浙公网安备 33010602011771号