赞
踩
Array.isArray(数组名)——返回布尔值
arr(数组名)instanceof Array ——返回布尔值判断是否为数组
arr.constructor===Array——判断是不是数组
获取过来的dom类型为html。。。
需要对其转换成数组以后方可使用数组的方法
对象列表无法转换为数组
Array.from_1=function(list){
// return [].slice.call(list);//将所有列表转换为数组
// // return Array.prototype.slice.call(list);
// // return [].concat.apply([],list);
// // return Array.prototype.concat.apply([],list);
// }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。