let CXArry = []
if (arr.length > 100)
{
let tempInt = parseInt(arr.length % 100)
// 偶数
if (tempInt % 2 === 0)
{
let rresult = arr.slice((tempInt / 2) - 1, arr.length - (tempInt / 2) - 1)
let num = (arr.length - tempInt) / 100
for (let i = 0; i < rresult.length; i += num)
CXArry.push(arr[tempInt / 2 + i])
}
//奇数
else
{
let rresult = arr.slice(((tempInt) - 1 / 2) - 1, arr.length - ((tempInt - 1) / 2))
let num = (arr.length - tempInt) / 100
for (let i = 0; i < rresult.length; i += num)
CXArry.push(arr[(tempInt - 1) / 2 + i])
}
// console.log(CXArry)
}
else
// CXArry = Arry.values
return this.$message({ type: 'warning', message: '数据量不足' })
12-13
392
07-16
04-21
2848