JS万金油的类型判断方法

Object.prototype.toString.call(data).slice(8, -1).toLowerCase();
原文地址:https://www.cnblogs.com/rusr/p/7809579.html