正如标题所说的那样,typeof (Array, null)returnsobject和typeof(null, Array)Returns function。
它返回第二个参数的类型。
为什么 ?
正如标题所说的那样,typeof (Array, null)returnsobject和typeof(null, Array)Returns function。
它返回第二个参数的类型。
为什么 ?
因为
所以
typeof (a, b)返回typeof b
在你的情况下
typeof (Array, null)是typeof null 哪个是"object"typeof(null, Array)是typeof Array,Array是一个函数。