JS中的true和false

false:
* undefined
* null
* 0
* NaN
* false
* ''
true:
* 对象始终为true
* 非0数字
* true
* 非空字符串

猜你喜欢

转载自blog.csdn.net/weixin_42604536/article/details/85555989