ES6获取对象数组某个属性最大值:
this.cavityNums = Math.max.apply(null, res.data.map(item => item.cavityNum))
ES6获取对象数组某个属性最小值:
this.cavityNums = Math.min.apply(null, res.data.map(item => item.cavityNum))
ES6获取对象数组某个属性最大值:
this.cavityNums = Math.max.apply(null, res.data.map(item => item.cavityNum))
ES6获取对象数组某个属性最小值:
this.cavityNums = Math.min.apply(null, res.data.map(item => item.cavityNum))