var arr = [113, 25] let max = [115, 26] let min = [113, 24] // 中心 let cn = [(115 + 113) / 2, (24+26)/2] console.log(cn) //每份 let q = (115-cn[0]) / 50 console.log(q) console.log(50 /q) let aq = (cn[0] - arr[0]) * 50 /q console.log(aq) console.log(aq/ 50)