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