其他数据转换为boolean 使用Boolean()函数 - 数字-->布尔 --除了0和NaN,其余都是true -字符串-->布尔 -除了空串,其余都是true -null和undifined 都是false -对象会转换为true