js typeof的判断限制

1.typeof中对象,数组和null 可以判断为Object

2.Array.isArray判断是对象还是数组

3.instanceof 判断是否为真正的object   arr instanceof Object

posted @ 2020-03-02 23:29  fm060  阅读(221)  评论(0)    收藏  举报