摘要: ``` var dataArr = [0,1,2,3,4,5,6,7,8,9,10]; var newArr = []; var s = parseInt(dataArr.length / 4); var n = 0; for (var i = 1; i 0) { newArr[n++] = dataArr.slice(s * 4); } console.log(newArr); ``` 阅读全文
posted @ 2017-05-17 18:11 andysd 阅读(5882) 评论(0) 推荐(0) 编辑