在条件判断时,除了 undefined, null, false, NaN, '', 0, -0,其他所有值都转为 true,包括所有对象。
undefined
null
false
NaN
''
0
-0
true