Array.isArray() 判断是不是数组

var arr = new Array();

if(Array.isArray()){

  console.log('yes')

} else {

 conssole.log('no')

}

posted @ 2017-11-10 18:25  jimmy.wang123  阅读(955)  评论(0)    收藏  举报