JS中为false的几种情况

JS中为false的六种情况

下面的值为false:

false

null

undefined

"" 即空字符串

0

NaN

参考:https://blog.csdn.net/peade/article/details/54731213

猜你喜欢

转载自blog.csdn.net/weixin_39407291/article/details/89553280