1. js中共有6中基础数据类型:
    undefined、null、string、number、boolean、symbol(es6)
    和一种引用数据类型 Object(例如:Object、Array、function、data等)
    判断数据类型可以使用 typeof或是instanceof
    但最好用的还是
    Object.prototype.toString.call()
    判断变量的数据类型

相关文章:

  • 2021-12-18
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
猜你喜欢
  • 2021-09-29
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
相关资源
相似解决方案