const data = [
{ name: '选项1', value: 112 },
{ name: '选项2', value: 40 },
{ name: '选项3', value: 254 },
{ name: '选项4', value: 35 },
{ name: '选项5', value: 466 },
{ name: '选项6', value: 38 },
]
const arr = []
data.map((item) => {
arr.push(Number(item.value))
})
const maxData = Math.max(...arr)
const maxNum = Math.ceil(maxData / 10) * 10
console.log('取十位数最大值', maxNum)
打印一下