/技术
/归档
· 1 min read
获取变量类型,有五种结果:
typeof null 的结果是 object;typeof 数组的结果是 object:typeof [1, 2, 4] === "object"。
typeof null
typeof [1, 2, 4] === "object"