JS万金油的类型判断方法

Object.prototype.toString.call(data).slice(8, -1).toLowerCase();

 

posted @ 2017-11-09 15:21  麦君  阅读(247)  评论(1编辑  收藏  举报