关于js里的布尔值判断

第一种if(a)
a为以下值时转换为false

 
false
undefined
null
0
-0
NaN
""
原文地址:https://www.cnblogs.com/yirgaMonkey/p/9496529.html