一:typeof()可能返回的值
1.number
2.String
3.boolean
4.object 数组,对象,null的返回值都是object
5.function
6.undefined
二:区分对象和数组的三种方法
1.toString
2.constructor
3.instanceof
一:typeof()可能返回的值
1.number
2.String
3.boolean
4.object 数组,对象,null的返回值都是object
5.function
6.undefined
二:区分对象和数组的三种方法
1.toString
2.constructor
3.instanceof