js中 var a= b || c;

版权声明:本文为博主原创文章,转载请附上博文链接! https://blog.csdn.net/csdnluolei/article/details/83861138
布尔值,javascript中以下值会被转换为false

  false

  undefined

  null

  0

  -0

  NaN

  ""

    ''

猜你喜欢

转载自blog.csdn.net/csdnluolei/article/details/83861138