js类型判断的方法

var arr=[];
alert(Object.prototype.toString.call(arr)=='[object Array]');

 

posted @ 2015-06-28 09:57  iQingHan  阅读(279)  评论(0编辑  收藏  举报