JS 获取变量的类型


Object.prototype.toString.call() 

精准判断对象的类型

其余参考:https://blog.csdn.net/honeymoon_/article/details/120307545