[记录] javascript判断类型

Object.prototype.toString.call(XXX)

从此不用再写什么 typeof, instanceof 啦
原文地址:https://www.cnblogs.com/baweiji/p/2770045.html