JavaScript中的boolean类型判断 http://www.w3school.com.cn/tiy/t.asp?f=jsrf_boolean 总结一下: false: 0 是逻辑的 false 空字符串是逻辑的 false null 是逻辑的 false NaN 是逻辑的 false