美文网首页
js五种空值的类型和判断为false的类型

js五种空值的类型和判断为false的类型

作者: 开心就好_635d | 来源:发表于2020-04-29 11:12 被阅读0次

js五种空值的类型:

typeof(undefined) == 'undefined'

typeof(null) == 'object'

typeof("") == 'String'

typeof(0) == 'number'

typeof(false) == 'boolean'

========================================================

false类型:

false=>false,undefined=>false,null=>false,""=>false,0=>false

相关文章

网友评论

      本文标题:js五种空值的类型和判断为false的类型

      本文链接:https://www.haomeiwen.com/subject/mykxuhtx.html