标签:each style ons 转化 OLE length 数组 结果 color
类数组对象转化为数组
let arrayLike = { ‘0‘: ‘a‘, ‘1‘: ‘b‘, ‘2‘: ‘c‘, length: 3 }; let arr = Array.from(arrayLike) arr.forEach(el=>console.log(el))
输出结果:[a,b,c],需要注意的是,length不能少
标签:each style ons 转化 OLE length 数组 结果 color
原文地址:https://www.cnblogs.com/leileilei/p/10985990.html