摘要: 判断是对象还是数组 var ids={ id:'1',num:'2' } if(Array.isArray(ids) == false) {console.log('不是数组,对象') } else if(Array.isArray(ids) == true) {console.log(‘数组’) 阅读全文
posted @ 2017-12-23 11:14 朝阳升 阅读(4362) 评论(0) 推荐(0) 编辑