JS判断是否为数组

Object.prototype.toString.call(obj) === '[object Array]'
posted @ 2013-06-20 21:37  *一线天  阅读(643)  评论(0)    收藏  举报