[记录] javascript判断类型

Object.prototype.toString.call(XXX)

从此不用再写什么 typeof, instanceof 啦
posted @ 2012-11-14 15:49  八位机  阅读(304)  评论(0编辑  收藏  举报