js判断数据类型的方法

 

1.typeof

2.instanceof

3.constructor

4.Object.prototype.toString.call("")

 

posted @ 2020-05-06 20:19  又回到了起点  阅读(176)  评论(0编辑  收藏  举报